Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Range of chars except one

by japhy (Canon)
on Jan 19, 2002 at 21:16 UTC ( [id://140090]=note: print w/replies, xml ) Need Help??


in reply to Range of chars except one

You'll be able to do that soonish. I'm working on a patch to Perl that will allow you to do character class set operations: s/[$start-$end^^$keep]//. That is, if $start = "a", and $end = "z", and $keep = "aeiou", the character class would be everything from "a" to "z" except "a", "e", "i", "o", and "u".

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found