Platte daddy
\A and \z versus ^ and $
This one is subtle—if you’re anchoring a regular expression
to the beginning and end of a
string
, not a
line
, you want
\A
and
\z
, not
^
and
$
.
Guess who just got bit!
Newer Post
Older Post
Home