summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-21 08:07:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-21 08:07:35 (GMT)
commit4eea62fd2e40d928ff88facc796ebba3aac808a2 (patch)
tree009531c0bbb25bcd89564cd22bd6c0c6ed1d89cd /Doc
parentdf80706f141bf3de5326750e4646161355d65881 (diff)
downloadcpython-4eea62fd2e40d928ff88facc796ebba3aac808a2.zip
cpython-4eea62fd2e40d928ff88facc796ebba3aac808a2.tar.gz
cpython-4eea62fd2e40d928ff88facc796ebba3aac808a2.tar.bz2
Issues #814253, #9179: Group references and conditional group references now
work in lookbehind assertions in regular expressions.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 8e20496..0d305d5 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -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