Skip to content

Commit

Permalink
merge with 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Apr 12, 2016
2 parents 2940255 + 7ff033b commit 2cfa4c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ The special characters are:
``*?``, ``+?``, ``??``
The ``'*'``, ``'+'``, and ``'?'`` qualifiers are all :dfn:`greedy`; they match
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
string, and not just ``'<H1>'``. Adding ``'?'`` after the qualifier makes it
``<.*>`` is matched against ``<a> b <c>``, it will match the entire
string, and not just ``<a>``. Adding ``?`` after the qualifier makes it
perform the match in :dfn:`non-greedy` or :dfn:`minimal` fashion; as *few*
characters as possible will be matched. Using ``.*?`` in the previous
expression will match only ``'<H1>'``.
characters as possible will be matched. Using the RE ``<.*?>`` will match
only ``<a>``.

``{m}``
Specifies that exactly *m* copies of the previous RE should be matched; fewer
Expand Down

0 comments on commit 2cfa4c7

Please sign in to comment.