in reply to Re^2: Arbitrary number of captures in a regular expression
in thread Arbitrary number of captures in a regular expression

I came to PM late and didn't possbly get the whole problem connected w/above topic.
That's what the "in thread" link up at the top is for, I believe... :-)

And, in fact, ikegami already posted a code assertion solution earlier in the thread.

Wouldn't this be very simple to solve by code assertion?
I suspect your definition of "very simple" must be different from mine. It's nice to have an escape hatch like code assertions for when the basic mechanism is insufficient (and indeed, Perl 6 provides more such escape mechanisms and also makes them easier to use), but it would be even better if the basic capture mechanism did what you wanted it to do. That's my idea of simple.