Zero width Perl Escape sequences |
Meaning |
\A | Match only at beginning of string |
\b | Match a word boundary, which is a spot between two characters that has a "\b" one one side and a "\w" on the other side in either order, counting the imaginary characters off the beginning or end of the string as a match for "\W". Within character classes "\b" represents backspace rather than a word boundary. |
\B | Match a non-word boundary |
\G | Match only at pos(), i.e. at the end-of-match position of prior m//g |
\z | Match only at end of string. Use to match actual end of string and not ignore an optional trailing newline. |
\Z | Match only at end of string, or before newline at the end. |