$str =~ s/((?>[^\cH]*))((?>\cH+))/substr $1, 0, length($1) - length($2 +)/eg; [download]
In reply to Re^2: ascii problem by chibiryuu in thread ascii problem by kermit393