in reply to checking interpreted string for escapes versus literal backslashes?
while (<DATA>) { chomp; print "matched '$1' in '$_'\n" if /(?<!\\)(?s:\\.)*(\$\d+)/; } __DATA__ for the $1th time SELECT * FROM Product WHERE Price LIKE '\$2.59' using fore- and back-slashes for emphasis: \\$10/ escaping: \\\$6
|
|---|