fork download
  1. s = "abcdef"
  2. w = "abc"
  3. t = s.sub(/\A#{w}/, "")
  4.  
  5. puts t
Success #stdin #stdout 0.01s 5928KB
stdin
Standard input is empty
stdout
def