A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/338572.html below:

regex re.search and re.match

regex re.search and re.match regex re.search and re.matchXah Lee xah at xahlee.org
Sun Sep 11 05:54:08 EDT 2005
in the regex module re:

Note: Match() is not exactly equivalent to Search() with "^". For
example:

 re.search(r'^B', 'A\nB',re.M) # succeeds
 re.match(r'B', 'A\nB',re.M)   # fails

if without the re.M, would re.search and re.match be equivalent?

------------

i wish to spruce up the rewritten re-module doc
 http://xahlee.org/perl-python/python_re-write/lib/module-re.html
with people's help.

if at the end it is good, i hope it can find its way into the official
doc.

 Xah
 xah at xahlee.orghttp://xahlee.org/


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4