my @regexes = map qr/$_/, ('hello(\w+)', 'HELLO(\w+)', Hello(\w+)'); for my $re (@regexes) { if ($string =~ $re) { print "$string matched $re\n"; } }
[ ar0n -- want job (boston) ]
In reply to (ar0n) Re: Need help comparing against a set of regexps
by ar0n
in thread Need help comparing against a set of regexps
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |