Files
codeql/python/ql/test/library-tests/regex/groupTest.py
Rasmus Lerchedahl Petersen 74ca1d00b9 Python: More precise regex parsing
2021-06-28 17:04:48 +02:00

5 lines
118 B
Python

import re
re.compile(r'(?P<first>\w+) (?P<second>\w+)') #$ group=0:14 group=15:30
re.compile(r'([)(])') #$ group=0:6