Regular Expression question

Fredrik Lundh fredrik at pythonware.com
Wed Jun 7 17:27:52 EDT 2006


ken.carlino at gmail.com wrote:

> I am new to python regular expression, I would like to use it to get an
> attribute of an html element from an html file?

if you want to parse HTML, use an HTML parser.  if you want to parse 
sloppy HTML, use a tolerant HTML parser:

     http://www.crummy.com/software/BeautifulSoup/

</F>




More information about the Python-list mailing list