re.match(...) fails to find a match

Jeff Wong jeffwong at transmeta.com
Thu Jun 21 01:07:20 EDT 2001


In article <d0a2dc5d.0106201104.756bfa15 at posting.google.com>,
kjcole at well.com (Kevin Cole) wrote:

>   print p.match('This string & that string')


'match' matches from the beginning of the string. You probably want to use
'search' to find the first one or 'findall' to find all of them.



More information about the Python-list mailing list