in reply to reset named capture buffer within regex
I can't seem to find any way of resetting named captures mid-regexp. (And have managed several segfaults trying.)
Why exactly do you need to reset it? Is it just because you want the right-most match instead of the left-most match? If so, take a look at %-.
++ for the question though; I'll be interested to read any other replies.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reset named capture buffer within regex
by mhgoeschl (Novice) on Nov 22, 2012 at 17:11 UTC |