Jul 262010
Replace Unicode character using regex with Perl
Answer:
To use regex to replace Perl's Unicode string, you can try the following.
$text =~ s/[\x{0000}-\x{007F}]+/ /g;
The above code replace all Unicode with codepoint from 0 to 127 by a space.