From perlre:
The "\A" and "\Z" are just like "^" and "$",except that they won’t match multiple times when the "/m" modifier is used, while "^" and "$" will match at every internal line boundary. To match the actual end of the string and not ignore an optional trailing newline, use "\z".
In reply to Re: misc. regex questions
by duff
in thread misc. regex questions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |