Message290008
I suggest to use my regular expression for haxadedecimals. Your regular expression starves from catastrophic backtracking. Compare two examples:
re.match(r'0[xX]_?[\da-fA-F]+(?:_[\da-fA-F]+)*[lL]?'+r'\b', '0x'+'0'*100+'z')
re.match(r'0[xX](?:_?[\da-fA-F]+)+[lL]?'+r'\b', '0x'+'0'*100+'z') |
|
Date |
User |
Action |
Args |
2017-03-22 18:57:03 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, nevsan |
2017-03-22 18:57:03 | serhiy.storchaka | set | messageid: <1490209023.94.0.711818089952.issue29869@psf.upfronthosting.co.za> |
2017-03-22 18:57:03 | serhiy.storchaka | link | issue29869 messages |
2017-03-22 18:57:03 | serhiy.storchaka | create | |
|