[docs] [issue14155] Deja vu in re's documentation

py.user report at bugs.python.org
Thu Mar 1 22:53:37 CET 2012


py.user <port139 at yandex.ru> added the comment:

this sentence was deleted:
http://docs.python.org/py3k/library/re.html#matching-vs-searching
"The “match” operation succeeds only if the pattern matches
at the start of the string regardless of mode,
or at the starting position given by the optional pos argument
regardless of whether a newline precedes it."

this sentence exists now:
http://docs.python.org/dev/library/re.html#re.match
"Note that even in MULTILINE mode, re.match() will only match at the beginning of the string
and not at the beginning of each line."


but the multiline mode affects on regex.match()
a reader may confuse re.match() and regex.match(), although regex.match() cites to regex.search()

----------

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


More information about the docs mailing list