Completely untested, shoot-from-the-hip code:
re.SearchPattern = "<a[^>]+?href=(['""]?)([^""']+)\1"
re.ReplacementPattern = "$2"
That *should* be a little more resilient to issues of other tags (eg,
<link href...>) as well as different or no quotes ("http://..",
'http://...', http://...).
-Adam
dingostick.com
On 8/30/07, Tom Russell <linuxrox at stny dot rr dot com> wrote:
> Sven E Olsson wrote:
> > There is more problems, if don't wanted links like this:
> > <link rel="alternate" type="application/rss+xml" title="SEEdit Maxi
> > RSS News" href="http://www.seedit.info/rss/rss.xml" />
> > And links to css files could also use http://www. if the css file is
> > on another server.
> >
> > Sven E
> > -----------------------
> > REALbasic 2007R3 OS X 10.4.10 Intel and 10.3.9/10.4.10 PPC
> > SEEdit Maxi THE XHTML EDITOR FOR MACINTOSH
> > http://www.seedit.info
> >
> >
> >
> > _______________________________________________
> > Unsubscribe or switch delivery mode:
> > <http://www.realsoftware.com/support/listmanager/>
> >
> > Search the archives:
> > <http://support.realsoftware.com/listarchives/lists.html>
> >
> >
> >
> Thanks.
>
> At least I can tweak it out.
>
> Appreciate the help.
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|