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.
In reply to Re: reset named capture buffer within regex
by tobyink
in thread reset named capture buffer within regex
by mhgoeschl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |