in reply to More than one regexp.
NB This will do something akin to "command matching"my $patternlist = join( "\t", @patterns ); if( $patternlist =~ /\t$input(.*)\t/ ) { print $input.$1; }
If you wanted to match whole patterns only, then:
of course RatArsedmy $patternlist = join( "\t", @patterns ); if( $patternlist =~ /\t$input\t/ ) { print $input; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: More than one regexp.
by eg (Friar) on Jan 19, 2001 at 15:05 UTC | |
by dws (Chancellor) on Jan 19, 2001 at 22:15 UTC |