Keep It Simple, Stupid | |
PerlMonks |
Re: Range of chars except oneby japhy (Canon) |
on Jan 19, 2002 at 21:16 UTC ( [id://140090]=note: print w/replies, xml ) | Need Help?? |
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".
_____________________________________________________
In Section
Seekers of Perl Wisdom
|
|