Eh, this code is a copy/paste/fix from StringMatch, with is not good either.

Any idea how to call a function which matches a regex against string and returns all the captured substrings?