[docs] [issue12162] Documentation about re \number

Seth Troisi report at bugs.python.org
Tue May 24 04:27:05 CEST 2011


Seth Troisi <braintwo at gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12162>
_______________________________________


More information about the docs mailing list