in reply to Counting matches
That's a bit vague. Can you give us an example of the "array of strings" and the "array of regexes" to work with? Please see Short, Self-Contained, Correct Example (and please take the word "short" seriously :). (Update: Also perhaps see I know what I mean. Why don't you?)
Give a man a fish: <%-{-{-{-<
|
|---|