?Module re documentation bug, error, or misunderstanding?

Skip Montanaro skip at pobox.com
Fri Jul 26 17:11:30 EDT 2002


    Norman> So, what am I missing below as both searches "should" succeed?

"r".

>>> import re
>>> re.search("(.+) \1", '55 55')
>>> re.search(r"(.+) \1", '55 55')
<_sre.SRE_Match object at 0x402665a0>

<wink>

-- 
Skip Montanaro
skip at pobox.com
consulting: http://manatee.mojam.com/~skip/resume.html




More information about the Python-list mailing list