Message221631
| Author |
py.user |
| Recipients |
BreamoreBoy, ezio.melotti, mrabarnett, py.user, serhiy.storchaka |
| Date |
2014年06月26日.19:01:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1403809306.96.0.696219497863.issue14460@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> m = re.search(r'(?<=(a)){10}bc', 'abc', re.DEBUG)
max_repeat 10 10
assert -1
subpattern 1
literal 97
literal 98
literal 99
>>> m.group()
'bc'
>>>
>>> m.groups()
('a',)
>>>
It works like there are 10 letters "a" before letter "b". |
|