mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
work in lookbehind assertions in regular expressions.
This commit is contained in:
parent
df80706f14
commit
4eea62fd2e
5 changed files with 92 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue