s = 'hello foo-1 hello bar $4 hello'puts s.split(/\s*(?=hello)/)
Standard input is empty
hello foo-1 hello bar $4 hello
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!