summaryrefslogtreecommitdiff
path: root/Doc/library/re.rst
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 11:06:20 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 11:07:03 +0900
commit6f2d28a8c10b2a342d42c4f495ea8844cce77d74 (patch)
treed3b8edb671ffac94d74364c427d1506fa81eafa9 /Doc/library/re.rst
parent752ffe24f181daff5b50cc59a05e4a7606ce1a62 (diff)
downloadpython-6f2d28a8c10b2a342d42c4f495ea8844cce77d74.tar.gz
python-6f2d28a8c10b2a342d42c4f495ea8844cce77d74.tar.bz2
python-6f2d28a8c10b2a342d42c4f495ea8844cce77d74.zip
Imported Upstream version 2.7.13upstream/2.7.13
Change-Id: Ide143efb88a819e2d9b350dbcbbfa75b890f0667 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r--Doc/library/re.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 1239434..7b76d0c 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -70,6 +70,12 @@ how the regular expressions around them are interpreted. Regular
expression pattern strings may not contain null bytes, but can specify
the null byte using the ``\number`` notation, e.g., ``'\x00'``.
+Repetition qualifiers (``*``, ``+``, ``?``, ``{m,n}``, etc) cannot be
+directly nested. This avoids ambiguity with the non-greedy modifier suffix
+``?``, and with other modifiers in other implementations. To apply a second
+repetition to an inner repetition, parentheses may be used. For example,
+the expression ``(?:a{6})*`` matches any multiple of six ``'a'`` characters.
+
The special characters are: