in reply to Finding multiple words from a line of flatfile
If you really want 1, 2 or 3 matches swap these for || signs:
if (($hdata =~/$crit1/i) || ($hdata =~/$crit2/i) || ($hdata =~/$crit3/i)) { print "$hdata<br>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Finding multiple words from a line of flatfile
by Anonymous Monk on Aug 01, 2002 at 17:10 UTC |