http://www.perlmonks.org?node_id=1008750


in reply to Re: regex not matching special char
in thread regex not matching special char

Interesting. A backslash is a word boundary, but a backslashed dollar sign is itself a non-word char itself, and hence is also a word boundary to the string "AVG" which follows it. Rats!

I need to distinguish between strings such as "$AVG", A$AVG", "A$AVGA". Hence my attempt to do it using \b$AVG\b.

Am I asking too much of Perl regex?