You don't really need to use a regular expression:
$string =~ tr/\342/'/;
But if you really want to:
$string =~ s/\342/'/g;
In reply to Re: Using 'ord' in a regular expression for substitution
by jwkrahn
in thread Using 'ord' in a regular expression for substitution
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |