Must be a bug in the re module [was: Why this result with the re module]

Yingjie Lan lanyjie at yahoo.com
Tue Nov 2 23:42:37 EDT 2010


> Matches an empty string, returns ''
> 
> The result is therefore ['Mar', '', '', 'lam', '', '']

Thanks, now I see it through with clarity.
Both you and JB are right about this case.
However, what if the regex is ((.a.)*)* ?


      



More information about the Python-list mailing list