docs/ure: Fix match.group signature to indicate index param is required.
This commit is contained in:
parent
b546e4b7e9
commit
a0d60c574a
@ -175,7 +175,7 @@ Match objects
|
|||||||
Match objects as returned by `match()` and `search()` methods, and passed
|
Match objects as returned by `match()` and `search()` methods, and passed
|
||||||
to the replacement function in `sub()`.
|
to the replacement function in `sub()`.
|
||||||
|
|
||||||
.. method:: match.group([index])
|
.. method:: match.group(index)
|
||||||
|
|
||||||
Return matching (sub)string. *index* is 0 for entire match,
|
Return matching (sub)string. *index* is 0 for entire match,
|
||||||
1 and above for each capturing group. Only numeric groups are supported.
|
1 and above for each capturing group. Only numeric groups are supported.
|
||||||
|
Loading…
Reference in New Issue
Block a user