in reply to Regex to delete high-bit characters

You don't need a regexp for that:

$str = join '', map {$_ & 0x7f} split //, $str;

hmmm. On second thoughts...

$str =~ s/(.)/$1 & 0x7f/eg;

• another intruder with the mooring in the heart of the Perl

Replies are listed 'Best First'.
Re^2: Regex to delete high-bit characters
by isync (Hermit) on Oct 05, 2007 at 14:19 UTC
    Thanks for the solution!