Strange regex problem

Rene Pijlman reply.in at the.newsgroup
Sun Mar 2 09:58:45 EST 2003


A.M. Kuchling:
>re.search()'s arguments are (pattern, string, flags). With re.search(),
>there's no way to specify a starting point within the string, so you're
>going to have to use a precompiled regex.

Ah, re.search() on
http://www.python.org/doc/current/lib/node99.html had me
confused as well. Especially since the description of compile()
on the same page says: "Compile a regular expression pattern
into a regular expression object, which can be used for matching
using its match() and search() methods, described below."
                                        ^^^^^^^^^^^^^^^

But I guess this refers to search() on another page of the
documentation:
http://www.python.org/doc/current/lib/re-objects.html.

-- 
René Pijlman




More information about the Python-list mailing list