- or download this
for (@patterns) {
if ( $incoming{'text'} =~ /$_/ ) {
....
}
}
- or download this
if ( $incoming{'text'} =~ /$Big_Regex/ ) {
....
}
- or download this
my $Big_Regex=join "|",@patterns;
$Big_Regex=qr/$Big_Regex/;
- or download this
for (@patterns) {
if ( instr($incoming{'text'},$_) > -1 ) {
....
}
}