[issue14460] In re's positive lookbehind assertion repetition works
py.user
report at bugs.python.org
Thu Jun 26 21:01:46 CEST 2014
py.user added the comment:
>>> 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".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14460>
_______________________________________
More information about the Python-bugs-list
mailing list