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

2006-11-18 Thread James Matthews
Sorry i was in a bit or a rush def next_page_finder(site): site = urlopen(site).read() next_site_pages = findall(r'\?Brand=\d+\&pg=\d+',site) return next_site_pages On 11/17/06, Bob Gailer <[EMAIL PROTECTED]> wrote: James Matthews wrote: > I have this RE things= re.findall(r'\?Br

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

2006-11-17 Thread Bob Gailer
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? You will probably get more help if you tell us w

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

2006-11-17 Thread Tim Roberts
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

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

2006-11-17 Thread James Matthews
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? -- http://www.goldwatches.com ___ P