Is there a way to match multiple occurrences of string A in string B? Match
only returns a boolean and Pos
only returns the index of the first match it finds.
Maybe split the string into an iterable array based on a common delimiter and return a count somehow?