This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Seth.Troisi
Recipients Seth.Troisi, docs@python, ezio.melotti, r.david.murray
Date 2011-05-24.02:27:05
SpamBayes Score 2.2179633e-05
Marked as misclassified No
Message-id <1306204025.92.0.1546388276.issue12162@psf.upfronthosting.co.za>
In-reply-to
Content
Given David Murray's input I think the example would be best done as 

>>> re.search(r'(\w+) \1', "can you do the can can?") # Matches the duplicate can
<_sre.SRE_Match object at ...>


I want to stress that the documentation is not wrong but confusing, especially for someone unfamiliar with regression expressions.
History
Date User Action Args
2011-05-24 02:27:05Seth.Troisisetrecipients: + Seth.Troisi, ezio.melotti, r.david.murray, docs@python
2011-05-24 02:27:05Seth.Troisisetmessageid: <1306204025.92.0.1546388276.issue12162@psf.upfronthosting.co.za>
2011-05-24 02:27:05Seth.Troisilinkissue12162 messages
2011-05-24 02:27:05Seth.Troisicreate