s = "abcdef"w = "abc"t = s.sub(/\A#{w}/, "") puts t
Standard input is empty
def
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!