Message136715
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. |
|
Date |
User |
Action |
Args |
2011-05-24 02:27:05 | Seth.Troisi | set | recipients:
+ Seth.Troisi, ezio.melotti, r.david.murray, docs@python |
2011-05-24 02:27:05 | Seth.Troisi | set | messageid: <1306204025.92.0.1546388276.issue12162@psf.upfronthosting.co.za> |
2011-05-24 02:27:05 | Seth.Troisi | link | issue12162 messages |
2011-05-24 02:27:05 | Seth.Troisi | create | |
|