danger pointed out the benefit of using a negated character class. This is not only more precise, it can have huge performance benefits. This node can give you a good background on this.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Regular Expression Matching
by Ovid
in thread Regular Expression Matching
by daviddhall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |