The ’ could be anywhere in the string.my $str = q|cat’s|; $str =~ s/\x092/'/; print "$str\n"; # outputs: # cat’s
winxp/activestate 5.8.7.
Thanks in advance
Update:
\x{092} produces the same result
Udate 2
The same (with or without the braces)$str =~ tr/\x{092}/'/d;
In reply to Removing \x092 with a regex by wfsp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |