-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate names and callouts #17
Comments
Duplicate names are most useful in patterns when only one of the duplicates can be set in any given match, for example, if each one is in a separate branch. If more than one is set, there is no direct way to tell which was most recent. I think the only way you could achieve this would be to make use of different (*MARK) items. |
@PhilipHazel Thanks for the tip - how exactly would I achieve that? |
Read the documentation about the pcre2_get_mark() function. I'm going to close this issue now. |
I have a function that is searching for the nearest named group by name by measuring the distance from the nametable and last capture_last callout structure field.
It seems to be buggy.
Like how do I get the most recent (actually only one normally in the current subroutine) named group when duplicate names are allowed?
The text was updated successfully, but these errors were encountered: