diff options
author | Georg Brandl <georg@python.org> | 2013-10-13 07:32:59 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-13 07:32:59 (GMT) |
commit | daa1fa991cf11d67e559b837ab3b9d32514a3595 (patch) | |
tree | e8d62a30553142fd183cfea5f3cbf10c57707a67 /Doc/library/re.rst | |
parent | a7bb9b3a13ae4696cb11fa2a6edef79cdba39fe0 (diff) | |
download | cpython-daa1fa991cf11d67e559b837ab3b9d32514a3595.zip cpython-daa1fa991cf11d67e559b837ab3b9d32514a3595.tar.gz cpython-daa1fa991cf11d67e559b837ab3b9d32514a3595.tar.bz2 |
Back out accidentally pushed changeset b51218966201.
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 9ea99a9..762ca49 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -584,16 +584,6 @@ form. instead (see also :ref:`search-vs-match`). -.. function:: fullmatch(pattern, string, flags=0) - - If the whole *string* matches the regular expression *pattern*, return a - corresponding :ref:`match object <match-objects>`. Return ``None`` if the - string does not match the pattern; note that this is different from a - zero-length match. - - .. versionadded:: 3.4 - - .. function:: split(pattern, string, maxsplit=0, flags=0) Split *string* by the occurrences of *pattern*. If capturing parentheses are @@ -788,24 +778,6 @@ attributes: :meth:`~regex.search` instead (see also :ref:`search-vs-match`). -.. method:: regex.fullmatch(string[, pos[, endpos]]) - - If the whole *string* matches this regular expression, return a corresponding - :ref:`match object <match-objects>`. Return ``None`` if the string does not - match the pattern; note that this is different from a zero-length match. - - The optional *pos* and *endpos* parameters have the same meaning as for the - :meth:`~regex.search` method. - - >>> pattern = re.compile("o[gh]") - >>> pattern.fullmatch("dog") # No match as "o" is not at the start of "dog". - >>> pattern.fullmatch("ogre") # No match as not the full string matches. - >>> pattern.fullmatch("doggie", 1, 3) # Matches within given limits. - <_sre.SRE_Match object at ...> - - .. versionadded:: 3.4 - - .. method:: regex.split(string, maxsplit=0) Identical to the :func:`split` function, using the compiled pattern. |