From a set number of patterns, I'm trying to see if they crop up in an inputted word -
However I want to count the number of patterns that occur in the word. For example if the pattern *ae* and the pattern *blah* are both valid patterns in the one word how do I
i)output an affirmative result
ii)give an integer count of the num of patterns - in this case 2.????????
Any help would be greatly appreciated!