Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: regex testing for ALL of the vowels in a scalar

by ysth (Canon)
on Feb 11, 2004 at 06:31 UTC ( [id://328175]=note: print w/replies, xml ) Need Help??


in reply to Re: regex testing for ALL of the vowels in a scalar
in thread regex testing for ALL of the vowels in a scalar

Without having benchmarked it, I have a feeling that your lookahead regex will fail faster if it's anchored:
/^(?=.*a)(?=.*e)(?=.*i)(?=.*o)(?=.*u)/i

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-26 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found