in reply to regex match in array
That's a hard way to do it. Try this.( {map { $_ => 1 } @myTerms}->{"term"}
Then doing the regex comes out trivially:grep $_ eq "term", @myTerms
grep /TE(.)M/i, @myTerms
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regex match in array
by rsiedl (Friar) on May 27, 2004 at 13:24 UTC | |
|
Re: Re: regex match in array
by rsiedl (Friar) on May 27, 2004 at 14:20 UTC |