Issues #814253, #9179: Group references and conditional group references now

work in lookbehind assertions in regular expressions.
This commit is contained in:
Serhiy Storchaka 2015-02-21 10:07:35 +02:00
parent df80706f14
commit 4eea62fd2e
5 changed files with 92 additions and 12 deletions

View file

@ -297,6 +297,9 @@ The special characters are:
>>> m.group(0)
'egg'
.. versionchanged: 3.5
Added support for group references of fixed length.
``(?<!...)``
Matches if the current position in the string is not preceded by a match for
``...``. This is called a :dfn:`negative lookbehind assertion`. Similar to