fork download
  1. class Ideone {
  2. static void main(String[] args) {
  3. def input = ",\"version\" : \"1.0.0-ift-11\",\r\n \"name\" : \"monitoring/monitoring.sberradarpusher.v1.application\",\"version\" : \"1.0.0-ift-12\","
  4. def configs = (input =~ /(?m)(?<=\bversion\".:.\").*(?=\",)/).collect { it }
  5. print(configs)
  6. //(?m)(?<=\bversion\":.\").*(?=\",)
  7. }
  8. }
  9.  
Success #stdin #stdout 2.79s 137408KB
stdin
Standard input is empty
stdout
[1.0.0-ift-11, 1.0.0-ift-12]