From: Gavin Kistner Date: 2006-09-30T01:03:01+09:00 Subject: Re: $ anchor for string of a whole file > And, shouldn't /m tell it to include everying, including newlines? No, the multiline option causes the regexp engine to include newlines in the '.' character class. Unlike some other languages, I don't believe it has any effect on ^ or $.