Created
February 16, 2019 12:08
-
-
Save oogali/f7ecc72d2dcef2e9c8b038a933b94000 to your computer and use it in GitHub Desktop.
Example of Python regular expression compiler debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> re.compile(r'(jump|off)\s+the\s+ramp', re.DEBUG) | |
subpattern 1 | |
branch | |
literal 106 | |
literal 117 | |
literal 109 | |
literal 112 | |
or | |
literal 111 | |
literal 102 | |
literal 102 | |
max_repeat 1 4294967295 | |
in | |
category category_space | |
literal 116 | |
literal 104 | |
literal 101 | |
max_repeat 1 4294967295 | |
in | |
category category_space | |
literal 114 | |
literal 97 | |
literal 109 | |
literal 112 | |
<_sre.SRE_Pattern object at 0x1055051a8> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment