summaryrefslogtreecommitdiffstats
path: root/Doc/library/re.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r--Doc/library/re.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index ac6455a..b512830 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -371,6 +371,8 @@ The special characters are:
``(?#...)``
A comment; the contents of the parentheses are simply ignored.
+.. index:: single: (?=; in regular expressions
+
``(?=...)``
Matches if ``...`` matches next, but doesn't consume any of the string. This is
called a :dfn:`lookahead assertion`. For example, ``Isaac (?=Asimov)`` will match