Replies: 1 comment
-
Yes, it's done lexically. Each capture group index can be determined completely by just assigning an index (starting at
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with
regex-syntax
on some stuff, and doing some transformations on the parsed syntax. Do I correctly understand that theCapture
indices are assigned essentially lexically, from left to right? If I'm removing certain capture groups from the tree but keeping others, I can just renumber them in the order that they're encountered from left-to-right, starting at 1? I'm planning on using thesearch_slots
API and want to make sure I'm doing everything correctly.Beta Was this translation helpful? Give feedback.
All reactions