good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Strange regex to test for newlines: /.*\z/by Mutant (Priest) |
on May 21, 2007 at 14:02 UTC ( [id://616565]=note: print w/replies, xml ) | Need Help?? |
One problem tho, the following all match the string "\n":
It's possible that \z is meant to introduce some specialness when combined with .* (or possibly some other quantifiers), but I haven't seen it mentioned in any docs. This is either a bug, or a very poorly documented feature.
In Section
Seekers of Perl Wisdom
|
|