Python re module

Jesse D. Sightler jsight at mindspring.com
Sat Jul 10 00:15:11 EDT 1999


catlee at my-deja.com wrote:
> 
> 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? =)

Yes.

-- 
---------------
Jesse D. Sightler
http://www3.pair.com/jsight/

"Do not use a hatchet to remove a fly from your friend's forehead." 
      - Chinese Proverb




More information about the Python-list mailing list