mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Fix markup in re docs and give a mail address in regex howto, so that
the recommendation to send suggestions to the author can be followed.
This commit is contained in:
parent
173c1f1a01
commit
545a134916
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
Regular Expression HOWTO
|
||||
****************************
|
||||
|
||||
:Author: A.M. Kuchling
|
||||
:Author: A.M. Kuchling <amk@amk.ca>
|
||||
:Release: 0.05
|
||||
|
||||
.. TODO:
|
||||
|
|
|
|||
|
|
@ -1110,7 +1110,7 @@ For example:
|
|||
string)`` or ``re.search(pattern, string)``.
|
||||
|
||||
:func:`match` has an optional second parameter that gives an index in the string
|
||||
where the search is to start:
|
||||
where the search is to start::
|
||||
|
||||
>>> pattern = re.compile("o")
|
||||
>>> pattern.match("dog") # No match as "o" is not at the start of "dog."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue