re.match

Fredrik Lundh fredrik at pythonware.com
Tue Mar 20 12:29:23 EST 2001


Michael P. Soulier wrote:
>     Hey people. Could someone explain the purpose of the match function in the
> re module? If it's only difference from search is to match at the beginning of
> the line, why does it exist? That's what the ^ in the regexp is for.

no, it's not.  read the documentation again.

Cheers /F





More information about the Python-list mailing list