fork download
  1. a = "pic1.jpg"
  2. b = Regexp.new("pic")
  3. c = Regexp.new("photo")
  4. puts a.sub(b,c)
Runtime error #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
Standard output is empty