re.match

Fredrik Lundh fredrik at pythonware.com
Tue Mar 20 15:37:22 EST 2001


Michael P. Soulier wrote:
> If you do not include anchors, then by the definition of the regexp syntax,
> the entire line should be searched.

by your definition, perhaps.  obviously not by Python's definition.

> No biggy, but surprising

if you find it surprising that "match" matches and "search" searches,
I'm sure Python has more surprises in store for you...

Cheers /F





More information about the Python-list mailing list