in reply to AND and OR on Regular Expressions
I think the easiest way to handle ANDs is using multiple regexen:
But if you know the order of appearance (i.e. olive before popeye) you can use:if (/olive/ and /popeye|bluto/) { }
/olive.*(popeye|bluto)/
|
---|
In Section
Seekers of Perl Wisdom