my @myTerms = ( 'foo bar', 'blah' ); my $term = "foo"; for ( @myTerms ) { print "$term match with $_\n" if /\Q$term\E/; }
In reply to Re: regex to return matched value from array
by borisz
in thread regex to return matched value from array
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |