mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#8785: less confusing description of regex.find*.
This commit is contained in:
parent
262be5e70b
commit
f93ce0c1f5
1 changed files with 6 additions and 2 deletions
|
@ -739,12 +739,16 @@ Regular Expression Objects
|
||||||
|
|
||||||
.. method:: RegexObject.findall(string[, pos[, endpos]])
|
.. method:: RegexObject.findall(string[, pos[, endpos]])
|
||||||
|
|
||||||
Identical to the :func:`findall` function, using the compiled pattern.
|
Similar to the :func:`findall` function, using the compiled pattern, but
|
||||||
|
also accepts optional *pos* and *endpos* parameters that limit the search
|
||||||
|
region like for :meth:`match`.
|
||||||
|
|
||||||
|
|
||||||
.. method:: RegexObject.finditer(string[, pos[, endpos]])
|
.. method:: RegexObject.finditer(string[, pos[, endpos]])
|
||||||
|
|
||||||
Identical to the :func:`finditer` function, using the compiled pattern.
|
Similar to the :func:`finditer` function, using the compiled pattern, but
|
||||||
|
also accepts optional *pos* and *endpos* parameters that limit the search
|
||||||
|
region like for :meth:`match`.
|
||||||
|
|
||||||
|
|
||||||
.. method:: RegexObject.sub(repl, string[, count=0])
|
.. method:: RegexObject.sub(repl, string[, count=0])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue