By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

regex re.search and re.match

P: n/a
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...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
xa*@xahlee.org
http://xahlee.org/

Sep 11 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.