Clarify Regex in Python.

A.M. Kuchling amk at amk.ca
Tue Sep 12 08:15:24 EDT 2006


On 12 Sep 2006 05:07:03 -0700, 
	cooldudevamsee at gmail.com <cooldudevamsee at gmail.com> wrote:
> My Problem is, I want to know how can I force match functions to match
> the pattern any location in the subject. i.e I want to turn off before
> said behaviour.

Use search() instead; that's why the method is there.

(Or put .* at the beginning of all your patterns, though that will be
slightly slower.)

--amk



More information about the Python-list mailing list