in reply to Re: Re: Capturing brackets within a repeat group
in thread Capturing brackets within a repeat group
But I have no problem with the way repeating a capture works. The ()'s generate code to refer to a particular slot, since the numbering is static from left-to-right. The repeat redoes the same parens. It's no different from backtracking in that respect.
I'm sure you've figured this out:
Put the repeat inside the parens./( (?: blah blah) {5} ) /x
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Capturing brackets within a repeat group
by BrowserUk (Patriarch) on Jan 11, 2003 at 10:19 UTC | |
by John M. Dlugosz (Monsignor) on Jan 11, 2003 at 17:55 UTC |