I've got a regular expression (javascript) which is something like...
/(x)(y)+(z)/gi
The problem is that I'll always get exactly 3 captures from those parens, even if the (y)+ matched multiple times. If it does match multiple times, it just returns the last match. I've no way of knowing ahead of time how many times y will match on any given run, but I want to capture all of them.
Any ideas?