> Is it possible to substitute a hex code of "A0" with "20" in a text file
> using Perl REGEX?
A0 doesn't translate to 20 in decimal, if that's what you mean. If
you're talking about the character that translates into A0, that can be
represented with \xA0, and you can change them with s/\xA0/\x20/g.
Again, you need to be more specific in your posts to get a good answer.
--
Brendan Byrd/SineSwiper <SineS...@ResonatorSoft.org>
Perl hacker, computer wizard, and all-around internet guru
Resonator Software <http://www.ResonatorSoft.org/>
> Is it possible to substitute a hex code of "A0" with "20" in a text file
> using Perl REGEX?
Yes, but you would be (slightly) better off using the translate operator
if you want to translate characters:
$string=~tr/\240/\040/;
or, if you want to remove the 8th bit from all ASCII characters:
$string=~tr/\200-\377/\000-\177/;
--
Bob Walton