I've discovered something that I can't explain in Python re module.
Compilation of (a*)* or (a*|b)* throws an error:
raise error, v # invalid expression sre_constants.error: nothing to repeat
I've tested this regexp in javascript and it seems to be ok.
Is it a bug?
(a*)*is the same asa*, and(a*|b)*is the same as[ab]*(or(a|b)*). Is there a good use case, out of curiosity? - Kobi+not*- theheadofabroom