mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Issue #27800: Merge RE repetition doc from 3.5 into 3.6
This commit is contained in:
commit
479eb760f4
1 changed files with 6 additions and 0 deletions
|
|
@ -79,6 +79,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 a ``\number`` notation such as ``'\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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue