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 $.
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 $.
That is correct--^matches right after a newline and $ right before
it. \A and \Z are beginning and end of a given String, respectively.
On 2006.09.30 01:03, Gavin Kistner wrote:
> 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 $.