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?