This may be a quick question for experienced regular expressionists, but I\'m having trouble getting my match to execute correctly.
Suppose I had a string that looke
No, it is not possible to match an unknown number of capture groups.
If you try to repeat a capture group, it will always contain the last value captured.
Could you explain a bit more broadly what you're trying to do? Perhaps there is another simple way to do it (possibly without regular expressions).