J
Justin Coyne
/\A\n\Z/m.match("\n\n") => #<MatchData>
shouldn't this expression return nil?
These both return nil.
/\A\n\Z/m.match("a\n")
/\A\n\Z/m.match("\na")
My understanding is that \A and \Z always match at the beginning/end of
the string irrespective of newlines.
-Justin
shouldn't this expression return nil?
These both return nil.
/\A\n\Z/m.match("a\n")
/\A\n\Z/m.match("\na")
My understanding is that \A and \Z always match at the beginning/end of
the string irrespective of newlines.
-Justin