in reply to Removing \x092 with a regex

If you're trying to remove all \x{92} characters with a regexp, be sure to use the /g modifier. However, if that's your intent, use the transliteration operator instead; that's what it's designed for, and it's more efficient at its job:

$str =~ tr/\x{092}/'/d;

That ought to do the trick.


Dave