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.