Page 1 of 1

Find link replace target with '.'

Posted: Thu Apr 15, 2010 1:25 pm
by Mike Olds
Hello,

I am sure this has been covered before, but I am unable to find a useful thread using search.

What I have is a seed list for a search index. Items in the unedited seed list look like:

<a href="http://localhost/~pali/sn/05_mv/sn05.45.057.pali.bd.htm"> http://localhost/~pali/sn/05_mv/sn05.45.057.pali.bd.htm </a><br>

I need them to look like:

<a href="http://localhost/~pali/sn/05_mv/sn05.45 ... ">.</a><br>

Posted: Thu Apr 15, 2010 4:23 pm
by ben_josephs
This might do what you want:
Find what: (<a [^>]*>)[^<]*(</a>)
Replace with: \1.\2

[X] Regular expression

Posted: Thu Apr 15, 2010 4:42 pm
by Mike Olds
Thanks Ben, that worked fine.

I went about it the long way:

(<a href=[a-zA-Z0-9"_ .:/-]*)>([a-zA-Z0-9"_ .:/-]*)