need help with re module

John Salerno johnjsal at NOSPAMgmail.com
Wed Jun 20 16:24:27 EDT 2007


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. :)



More information about the Python-list mailing list