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:
MatchMatch
Match
No match
In Section
Seekers of Perl Wisdom