What's the best way to write this regular expression?
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Tue Mar 6 18:44:07 EST 2012
On Tue, 06 Mar 2012 15:05:39 -0800, John Salerno wrote:
>> Anything that allows me NOT to use REs is welcome news, so I look
>> forward to learning about something new! :)
>
> I should ask though...are there alternatives already bundled with Python
> that I could use? Now that you mention it, I remember something called
> HTMLParser (or something like that) and I have no idea why I never
> looked into that before I messed with REs.
import htmllib
help(htmllib)
The help is pretty minimal and technical, you might like to google on a
tutorial or two:
https://duckduckgo.com/html/?q=python%20htmllib%20tutorial
Also, you're still double-posting.
--
Steven
More information about the Python-list
mailing list