Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Regex to match multiple words in an email subject

by philipbailey (Chaplain)
on Jan 07, 2011 at 09:58 UTC ( #881035=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Regex to match multiple words in an email subject
in thread Regex to match multiple words in an email subject

That's a good point, but in the OP's use case it's irrelevant. In fact, the regex could be trimmed down to:

/(SSL|VASCO)/

Or, to avoid unnecessary capturing:

/(?:SSL|VASCO)/


Comment on Re^3: Regex to match multiple words in an email subject
Select or Download Code
Re^4: Regex to match multiple words in an email subject
by JavaFan (Canon) on Jan 07, 2011 at 12:36 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-10-02 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (62 votes), past polls