String s = "blabla world 2 temp 36.6*C"def m = s =~ /\b\d*\.?\d+\*C\b/println(m[0])
Standard input is empty
36.6*C
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!