[issue21593] Clarify re.search documentation first match

Joshua Landau report at bugs.python.org
Wed May 28 16:39:26 CEST 2014


New submission from Joshua Landau:

The documentation for re.search does not state that it returns the first match. This should be added, or a clarification added if this is implementation-defined.

https://docs.python.org/3/library/re.html#re.search

---

See also

http://stackoverflow.com/questions/23906400/is-regular-expression-search-guaranteed-to-return-first-match

----------
assignee: docs at python
components: Documentation
messages: 219270
nosy: Joshua.Landau, docs at python
priority: normal
severity: normal
status: open
title: Clarify re.search documentation first match
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21593>
_______________________________________


More information about the Python-bugs-list mailing list