fork download
  1. def articleContent = "eins:eins1,SG_Category_TestTeam:zwei2,drei:drei3"
  2. def result = articleContent.replaceAll(/.*SG_Category*:(.+),*/,/$1/)
  3. println "${result}"
  4.  
  5.  
  6. def cma2 = "COSO:COSO,SG_Category_Systemsmanagement:Systemsmanagement,SG_ICTServiceId_OPTIC Management Toolkit:15983156"
  7. def Category = cma2.split(',').find { it.startsWith('SG_Category_') }.split(':')[1]
  8. println "${Category}"
  9. def ICTServiceId = cma2.split(',').find { it.startsWith('SG_ICTServiceId') }.split(':')[1]
  10. println "${ICTServiceId}"
Success #stdin #stdout 2.83s 138680KB
stdin
Standard input is empty
stdout
eins:eins1,SG_Category_TestTeam:zwei2,drei:drei3
Systemsmanagement
15983156