In PCRE, what's the difference between:
^
\A
$
\Z
I remember reading the subtle difference, but I couldn’t remember exactly what it was.
By default, there is no difference between them, they mean the beginning or end of a line. If, however, you use the m modifier, then ^ and $ will correspond to the beginning and end of lines, respectively.
m