How to find 1-3 matches per line, no matter in which order the words are.
Line from flatfile:
FALCHE;12;ff;20020101;Pori;Yyteri;lietteet;testi;kylmaI have tried following code to search matches.
if (($hdata =~/$crit1/ig) && ($hdata =~/$crit2/ig) && ($hdata =~/$crit3/ig)) { print "$hdata<br>"; }
Problem is the order. If I search "pori and yyteri" I get fifferent resuts than with "yyteri and pori".
What should I do?
PH
Edited: ~Thu Aug 1 14:02:19 2002 (GMT) by footpad: Added <code> and other HTML formatting tags.
In reply to Finding multiple words from a line of flatfile by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |