--- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote:
> On Feb 20, R. Joseph Newton said:
> >if (/a/i and /e/i and /i/i and /o/i and /u/i) {print;}
> 
> If you really want a one-regex solution, here's one.  I don't suggest
> its use, though.
> 
>   print if /(?=.*a)(?=.*e)(?=.*i)(?=.*o)(?=.*u)/i;

Lookahead. Sweet, and I agree, ill advised. That's an elegant logic,
but very possibly a backtracking nightmare, lol....

For the peanut gallery, c.f. perldoc perlre for lookahead with ?=

Hey, Japhy -- didn't you get published?
What's the book? I want one. :)

Paul

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to