in reply to reset named capture buffer within regex
I don't fully understand what you are doing, just a hint:
The position will not be altered if you try an "impossible" match within a look-ahead or look-behind.
So you maybe wanna try something like (?=(?<name> ... ))?
HTH!
Cheers Rolf
|
|---|