Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: AND and OR on Regular Expressions

by busunsl (Vicar)
on Aug 25, 2009 at 14:07 UTC ( #791084=note: print w/ replies, xml ) Need Help??

in reply to AND and OR on Regular Expressions

I think the easiest way to handle ANDs is using multiple regexen:

if (/olive/ and /popeye|bluto/) { }
But if you know the order of appearance (i.e. olive before popeye) you can use:

Comment on Re: AND and OR on Regular Expressions
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-07-03 22:46 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (57 votes), past polls