need help with re module

John Salerno johnjsal at NOSPAMgmail.com
Wed Jun 20 22:24:27 CEST 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