fork(2) download
  1. String s = "abcde\n fghij<FooBar>"
  2. regex = /(?s)(.*)<FooBar>/
  3.  
  4. def m = s =~ regex
  5. print m[0][1]
Success #stdin #stdout 0.81s 4456448KB
stdin
Standard input is empty
stdout
abcde
		fghij