[python-win32] RE working in interactive but not in regular code

Tim Roberts timr at probo.com
Fri Nov 17 20:25:35 CET 2006


James Matthews wrote:
> I have this RE  things= re.findall(r'\?Brand\=\w+\&pg=\w+',site) now
> when i run it against a site it returns everything in a list ( in the
> interactive interpreter however when i run it start alone it won't
> work?? Why?

Show us an example, including what you expect and what you see.  We
can't read minds, yet.

There's no need to quote the =.  It isn't special.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list