I am trying to understand why the following returns false: (** I had to put "outputs 0" **)
puts "a\nb" =~ Regexp.new(Regexp.escape("a\nb"), Regexp::MULTILINE | Regexp::EXTENDED)
Maybe someone can explain.
I am trying to create regexp from a multi-line string that will match String.
Thanks in advance
source
share