[EMAIL PROTECTED] 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 f
k, people, thanks for ur replys.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I know there r many more methods to do the job, I just wonder can we
> turnoff the default behaviour of match method.
that's not the "default behaviour", that's how match works. if you want
search, use search instead.
--
http://mail.python.org/mailman/listinfo/pyt
[EMAIL PROTECTED] wrote:
> > Erm, is there some specific reason why you can't just use the search
> > method? Why does it *have* to be match()?
> >
> > regards
> > Steve
>
>
> I know there r many more methods to do the job, I just wonder can we
> turnoff the default behaviour of match method.
>
> Erm, is there some specific reason why you can't just use the search
> method? Why does it *have* to be match()?
>
> regards
> Steve
I know there r many more methods to do the job, I just wonder can we
turnoff the default behaviour of match method.
Thanks.
--
http://mail.python.org/mailman
[EMAIL PROTECTED] 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
On 12 Sep 2006 05:07:03 -0700,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 th
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