s = 'real 15,775'puts s[/\d+,\d+/]puts s.split(" ").lastputs s.sub(/^real\s*/,'')
Standard input is empty
15,775 15,775 15,775
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!