Message291109
The problem here is that both "." and "\s" match a whitespace character, and because you have the re.DOTALL flag turned on this includes "\n", and so the number of different ways in which (.|\s)* can be matched against a string is exponential in the number of whitespace characters in the string.
It is best to design your regular expression so as to limit the number of different ways it can match. Here I recommend the expression:
/\*(?:[^*]|\*[^/])*\*/
which can match in only one way. |
|
Date |
User |
Action |
Args |
2017-04-04 08:03:16 | gdr@garethrees.org | set | recipients:
+ gdr@garethrees.org, ezio.melotti, mrabarnett, Robert Lujo |
2017-04-04 08:03:16 | gdr@garethrees.org | set | messageid: <1491292996.09.0.871584916325.issue29977@psf.upfronthosting.co.za> |
2017-04-04 08:03:16 | gdr@garethrees.org | link | issue29977 messages |
2017-04-04 08:03:15 | gdr@garethrees.org | create | |
|