s = "here is 1 theword here is 2"puts s.sub!(/theword.*/mi, "")
Standard input is empty
here is 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!