in reply to misc. regex questions
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".
|
|---|