http://perldoc.perl.org/perlre.html "To match the actual end of the string and not ignore an optional trailing newline, use \z ."@tinita, @betterworld:
In reply to Re: Strange regex to test for newlines: /.*\z/
by bloonix
in thread Strange regex to test for newlines: /.*\z/
by betterworld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |