From: Gavin Kistner Date: 2006-09-30T01:00:44+09:00 Subject: Re: $ anchor for string of a whole file > Because I've read in an entire file as one string into memory, > shouldn't $ mean the end of the file? And, shouldn't /m tell it to > include everying, including newlines? http://phrogz.net/ProgrammingRuby/language.html#regularexpressions See \z and \Z