Python re module

catlee at my-deja.com catlee at my-deja.com
Fri Jul 9 17:44:02 EDT 1999


Try the following:

import re
re.search("((.)\\1+)","a")

Now, I know this isn't proper syntax (you shouldn't reference a group
inside itself), but on my machine python hangs.

Is this a bug, or a feature? =)

Cheers,
Chris


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list