I have the problem checking for multiple words in a string. The case I wish to check for is that either one group of 3 words exist anywhere in a string OR another group of 3 words exist anywhere in a string.
The following pseudo code illustrates the problem:
(one & two & three) OR (five & six & seven)
Any ideas suggestions of how this can be achieved using PHP Regular expressions would be warmly welcomed.
(This must be achieved in a single Regular Expression!)
Thanks in advance.