irb(main):004:0> s = " This is a multi-line\n comment\n*/ And here's some other stuff." # This is rue's irb(main):005:0> s.scan(/(\n|.)*\*/) => [["\n"]] # This is hoopy's irb(main):008:0> s.scan(/(?:\n|.)*\*\//) => [" This is a multi-line\n comment\n*/"]