Clarify Regex in Python.
Steve Holden
steve at holdenweb.com
Tue Sep 12 08:22:26 EDT 2006
cooldudevamsee at gmail.com wrote:
> After may frustrated attempts I came to know that "match" function in
> python re package actually start the matchs at the begining of the
> subject, where "search" will find the given pattern any where in the
> subject.
>
> 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.
>
>
> Thanks In advance.
>
Erm, is there some specific reason why you can't just use the search
method? Why does it *have* to be match()?
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list