/\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
-- 
Posted via http://www.ruby-forum.com/.