
myRegex
The full grammar of Python’s regex module, wherever patterns appear.


A grammar for the third-party regex module's full syntax: set operations, subroutines, conditional groups, POSIX classes, and control verbs like (*SKIP), with invalid constructs flagged as errors.
Other grammars embed it, so the same highlighting shows up in Python raw strings and inside Sublime grammar files. I think it's a travesty that the full functionality of regex still hasn't been added to the Python standard library!