"Have a Merry Christmas and a Happy New Year" contains "and"
The trouble is that it can appear anywhere in the string so you either need to build the data structure for every starting point in the string or repeat the test for as many characters as are in the string (unless I am missing something).
Cheers - L~R
In reply to Re^2: Better way to search array for elements in other array?
by Limbic~Region
in thread Better way to search array for elements in other array?
by echo5
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |