in reply to ascii problem
my $bs; $bs = qr{ . (??{ $bs })? \cH }x; $str =~ s/$bs//g; [download]
$str =~ s/((?>[^\cH]*))((?>\cH+))/substr $1, 0, length($1) - length($2 +)/eg; [download]