Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: regex: how to negate a set of character ranges?

by kettle (Beadle)
on Apr 30, 2007 at 10:01 UTC ( [id://612727]=note: print w/replies, xml ) Need Help??


in reply to regex: how to negate a set of character ranges?

Thanks for all the help on this one everyone. I ended up using Encode to decode the shiftjis text, and used an exclusion list made up of characters I don't want to see in the final output, and finally compiled this list into a traditional:
my $string = "NON_DELIMITED_CHAR_LIST"; my $regex = qr/ s/[^a-z]//g;

type of structure. This worked as expected, but still seems a little bit more messy than it ought to need to be. I'd still prefer not to have the big long list of characters. Anyway, thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://612727]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-23 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found