Message162896
This is not infinite loop. This is O(2**len(prefix_before_first_quote)) computation. Measure times of matching for "INSER(`id`...", "INSERT(`id`...", "INSERT (`id`...", "INSERT I(`id`...", etc.
Better use r'''(?:[^`';]+|'(?:''|[^'])*'|`(?:``|[^`])*`)+;''' regexp. |
|
Date |
User |
Action |
Args |
2012-06-15 12:55:05 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ezio.melotti, mrabarnett, moriyoshi |
2012-06-15 12:55:05 | serhiy.storchaka | set | messageid: <1339764905.78.0.155074062212.issue15077@psf.upfronthosting.co.za> |
2012-06-15 12:55:05 | serhiy.storchaka | link | issue15077 messages |
2012-06-15 12:55:05 | serhiy.storchaka | create | |
|