This would previously incorrectly parse FAIL TO DISPLAY REGISTRATION - POSSESSION REQUIRED (320.0605(1)) as:
charge == FAIL TO DISPLAY REGISTRATION - POSSESSION REQUIRED (320.0605
statute == 1
Now it correctly parses as:
charge == FAIL TO DISPLAY REGISTRATION - POSSESSION REQUIRED
statute == 320.0605(1)
Due to the nature of these nested brackets, recursive regex is used. This requires the use of the regex library, as the python re library does not support recursive regex.
This would previously incorrectly parse
FAIL TO DISPLAY REGISTRATION - POSSESSION REQUIRED (320.0605(1))
as:charge ==
FAIL TO DISPLAY REGISTRATION - POSSESSION REQUIRED (320.0605
statute ==
1
Now it correctly parses as:
charge ==
FAIL TO DISPLAY REGISTRATION - POSSESSION REQUIRED
statute ==
320.0605(1)
Due to the nature of these nested brackets, recursive regex is used. This requires the use of the
regex
library, as the pythonre
library does not support recursive regex.