Searching for a series of possible substrings inside a string
Hi Guys
I'm looking for some advice again, I'm doing some code that looks at long strings ("long" being less than 200 chars) and picking out numbers of, eg, in english, counting the number of "the" || "a" || "and" || "then" etc.
I dont need to know the number of "the"s and "a"s, just the total.
Considering im looking at a list of about 20 of these substrings to look for I'd love to know if theres anything more efficient of searching for each one in turn.
Thoughts?
Cheers Folks