in reply to Regex to match multiple words in an email subject
#!/usr/bin/perl use warnings; use strict; for (<DATA>) { print /(?:SSL|SSL Certificate|VASCO)/ ? "Match\n" : "No match\n"; } __DATA__ SSL SSL Certificate VASCO something else
Output:
Match
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex to match multiple words in an email subject
by jwkrahn (Abbot) on Jan 07, 2011 at 07:22 UTC | |
by philipbailey (Curate) on Jan 07, 2011 at 09:58 UTC | |
by JavaFan (Canon) on Jan 07, 2011 at 12:36 UTC |