fork(35) download
  1. def regex = /\$\$.*?\$\$/;
  2. String s = 'WHERE oid_2 = $$test$$ || oid_2 = $$test2$$'
  3. def m = s =~ regex
  4. (0..<m.count).each { print m[it] + '\n' }
Success #stdin #stdout 0.85s 4456448KB
stdin
Standard input is empty
stdout
$$test$$
$$test2$$