in reply to Using 'ord' in a regular expression for substitution
You don't really need to use a regular expression:
$string =~ tr/\342/'/;
But if you really want to:
$string =~ s/\342/'/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using 'ord' in a regular expression for substitution
by JavaFan (Canon) on Aug 25, 2010 at 15:29 UTC |