From: Justin Coyne Date: 2010-01-14T02:25:10+09:00 Subject: Bug with end of string characters in regex? /\A\n\Z/m.match("\n\n") => # 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/.