I have a text field that a user can enter text into, I then explode it
into an array, and ultimatley build a regular expression such as:


for use in:

preg_match ($reg_expr, $file);

however the expression above doesnot yeild the required result, it will
match a string with any word, whereas i want to match strings with BOTH
words present.

example of the contents of $file that might pass is:


another might be, which would not pass is:


Thanks in advance for your help...


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to