-
Notifications
You must be signed in to change notification settings - Fork 210
Declaring named capture groups #25
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
Comments
You can use |
I would appreciate improved descriptions for the mentioned functionality according to desirable pattern definitions. |
|
With |
Take a look at the file testdata/testinput1 in the PCRE2 distribution. Search for the string "BNF". There you will find some complicated patterns that use (DEFINE) to transliterate BNF syntax descriptions more or less directly into named patterns groups. |
Thanks for your link to another provided test case. 🔮 How will the chances evolve to improve the documentation any further also for this software area? |
Would you like to avoid any typos at mentioned places? Update candidates: |
I have fixed that minor typo, thanks for noticing. I think this issue is now done. |
💭 I would appreciate further documentation extensions for pattern definition groups. |
PCRE2 documentation is not really the place for tutorials. For discussion of (?(DEFINE) see this web site: |
💭 I hope that this information source can become better and more complete (also in comparison to the other good information source which you mentioned). |
Named capture groups are supported for a while.
How do you think about a software extension for the possibility to declare the binding of regular expressions to identifiers before such identifiers would be reused at other places?
The text was updated successfully, but these errors were encountered: