regex for href substitution

Greg Brondo greg at
Tue Feb 18 23:58:04 CET 2003

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.
Can you give an example of how you want the tag changed?

More information about the Python-list mailing list