regex for href substitution
exarkun at intarweb.us
Wed Feb 19 00:20:19 CET 2003
On Tue, Feb 18, 2003 at 10:44:44PM +0000, Robin Becker wrote:
> I'm sure this must have been done before, but has anyone got a regex for
> extracting/changing html href attributes. I've done this before with
> htmllib, but it's been suggested that we can do this with re.
> The application involves doing a special purpose forwarding proxy, so
> perhaps someone has already done something similar.
Regular expressions are the wrong solution for manipulating sgml.
htmllib is the right solution. I'd stick with what I had, if I were you.
up 10 days, 4:28, 4 users, load average: 0.08, 0.07, 0.03
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
More information about the Python-list