The stupid question is the question not asked | |
PerlMonks |
Re^2: Strange regex to test for newlines: /.*\z/by tinita (Parson) |
on May 21, 2007 at 12:33 UTC ( [id://616542]=note: print w/replies, xml ) | Need Help?? |
It works because . does not match newlines by default.i think betterworld knows this =) the point is, should .* match the empty string between foo\n and the end? update:
In Section
Seekers of Perl Wisdom
|
|