need help with re module

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Jun 20 18:47:19 EDT 2007


En Wed, 20 Jun 2007 17:24:27 -0300, John Salerno  
<johnjsal at NOSPAMgmail.com> escribió:

> Gabriel Genellina wrote:
>
>> py> from BeautifulSoup import BeautifulSoup
>> py> chaine = """<html>hello</a>world<anytag>ok"""
>> py> soup = BeautifulSoup(chaine)
>> py> soup.findAll(text=True)
>> [u'hello', u'world', u'ok']
>
> Wow. That *is* beautiful. :)

Thanks to Leonard Richardson, the main author.

-- 
Gabriel Genellina




More information about the Python-list mailing list