Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2cfa4c7b
Commit
2cfa4c7b
authored
Apr 12, 2016
by
Georg Brandl
Browse files
Options
Browse Files
Download
Plain Diff
merge with 3.5
parents
2940255d
7ff033bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/library/re.rst
Doc/library/re.rst
+4
-4
No files found.
Doc/library/re.rst
View file @
2cfa4c7b
...
@@ -113,11 +113,11 @@ The special characters are:
...
@@ -113,11 +113,11 @@ The special characters are:
``*?``, ``+?``, ``??``
``*?``, ``+?``, ``??``
The ``'*'``, ``'+'``, and ``'?'`` qualifiers are all :dfn:`greedy`; they match
The ``'*'``, ``'+'``, and ``'?'`` qualifiers are all :dfn:`greedy`; they match
as much text as possible. Sometimes this behaviour isn't desired; if the RE
as much text as possible. Sometimes this behaviour isn't desired; if the RE
``<.*>`` is matched against ``
'<H1>title</H1>'
``, it will match the entire
``<.*>`` is matched against ``
<a> b <c>
``, it will match the entire
string, and not just ``
'<H1>'``. Adding ``'?'
`` after the qualifier makes it
string, and not just ``
<a>``. Adding ``?
`` after the qualifier makes it
perform the match in :dfn:`non-greedy` or :dfn:`minimal` fashion; as *few*
perform the match in :dfn:`non-greedy` or :dfn:`minimal` fashion; as *few*
characters as possible will be matched. Using
``.*?`` in the previous
characters as possible will be matched. Using
the RE ``<.*?>`` will match
expression will match only ``'<H1>'
``.
only ``<a>
``.
``{m}``
``{m}``
Specifies that exactly *m* copies of the previous RE should be matched; fewer
Specifies that exactly *m* copies of the previous RE should be matched; fewer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment