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
In reply to Re: checking interpreted string for escapes versus literal backslashes?
by japhy
in thread checking interpreted string for escapes versus literal backslashes?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |