Re: regular expression : the dollar sign ($) work with re.match() or re.search() ?
Ian Kelly
ian.g.kelly at gmail.com
Fri Sep 28 14:32:07 EDT 2012
More information about the Python-list mailing list
Fri Sep 28 14:32:07 EDT 2012
- Previous message (by thread): RE: regular expression : the dollar sign ($) work with re.match() or re.search() ?
- Next message (by thread): ANN: eGenix mxODBC Connect - Python Database Interface 2.0.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Sep 28, 2012 at 12:07 PM, Prasad, Ramit <ramit.prasad at 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>
- Previous message (by thread): RE: regular expression : the dollar sign ($) work with re.match() or re.search() ?
- Next message (by thread): ANN: eGenix mxODBC Connect - Python Database Interface 2.0.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list