On Fri, Sep 28, 2012 at 12:07 PM, Prasad, Ramit
<ramit.pra...@jpmorgan.com> wrote:
> I guess you can consider re.match's pattern to be
> prefixed with '^'.

You can in this case, but they're not equivalent in multi-line mode:

>>> re.match('^two', 'one\ntwo', re.M)
>>> re.search('^two', 'one\ntwo', re.M)
<_sre.SRE_Match object at 0x0475BFA8>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to