retina icon indicating copy to clipboard operation
retina copied to clipboard

Implement $:n and $;n

Open m-ender opened this issue 5 years ago • 0 comments

The :; modifiers are currently only available for entire-match elements, not for numbered and named groups. A potentially very useful feature would be to generate the cumulative capture count (from the left or right) for that group, including the current match. However, that needs some changes in the code base, since this should generate a number, even if the given group doesn't exist in the current match (or separator).

m-ender avatar Apr 12 '19 22:04 m-ender