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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14460>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to