On Saturday, May 25, 2013 6:33:25 PM UTC-7, John Ladasky wrote:
> On Friday, May 24, 2013 4:36:35 PM UTC-7, Carlos Nepomuceno wrote:
> 
> > #to create the tables list
> 
> > tables=[[re.findall('<TD>(.*?)</TD>',r,re.S) for r in 
> > re.findall('<TR>(.*?)</TR>',t,re.S)] for t in 
> > re.findall('<TABLE>(.*?)</TABLE>',page,re.S)]
> 
> > 
> 
> > 
> 
> > Pretty simple. 
> 
> 
> 
> Two nested list comprehensions, with regex pattern matching?
> 
> 
> 
> Logan did say he was a "total beginner."  :^)



Oh goodness, yes, I have no clue.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to