Why no RE match of A AND B?

John Machin sjmachin at lexicon.net
Tue Mar 4 02:46:17 EST 2003


Joshua Marshall <jmarshal at mathworks.com> wrote in message news:<b40hk1$aig$1 at ginger.mathworks.com>...
> I think the difference is that in Python, the RE "abc" matches any
> string containing 'abc', not just the exact string itself.

I am using "match" in the ordinary sense which coincides with the
Python definition of re.match(), whereas you seem to be using "match"
to mean what re.search() does. If I had have meant the RE ".*abc.*", I
would have said that.




More information about the Python-list mailing list