theirpuppet has asked for the wisdom of the Perl Monks concerning the following question:
notice i'm using hexadecimal escaping for ascii chars (decimal) 128-165. it doesn't work. trying to pass any accented char, and it just rips it away. any advice is appreciated, including how to optimize my longass regexes (i've got longer than this, but i'm trying to take the approach of default deny - a firewall methodology).$line =~ s/[^0-9a-z\x80-\xA5_:,!\?\.\* -]//ig;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extended ascii regex
by BrowserUk (Patriarch) on Dec 11, 2002 at 06:07 UTC | |
|
Re: extended ascii regex
by seattlejohn (Deacon) on Dec 11, 2002 at 05:54 UTC | |
|
Re: extended ascii regex
by submersible_toaster (Chaplain) on Dec 11, 2002 at 06:17 UTC | |
|
Re: extended ascii regex
by theirpuppet (Sexton) on Dec 11, 2002 at 19:36 UTC |