Just a quick bit of code for reference – here’s a regex to implement stripslashes (a useful PHP function)in perl.
Update: Slashes have been escaped. Thanks, helpy.
Another update: In trying to be clever, this does way more than it should. This seems to work better:
$string =~ s/\\(\'|\"|\\)/$1/g
you need to escape the slashes in your regex
or you can just use uri_unescape
Yup, if you’re willing to install the URI package, it’s a much better way to go.