use Regexp::Assemble; my $re = Regexp::Assemble->new(); $re->add($_) for @regex; if ( $str =~ /$re/ ) { ... }
In reply to Re^2: Matching an array of regexes (grep in reverse)
by bingos
in thread Matching an array of regexes (grep in reverse)
by raymor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |