Page 1 of 1

How can I Delete one "-" in the line.

Posted: Mon Jan 31, 2005 5:32 pm
by Artem
I want delete in the name of link {-}

source text

<a href="www.hip-hop.bestonline.com">hip-hop</a><br>
<a href="www.sport-fitness.bestonline.com">sport-fitness</a><br>
<a href="www.abc-wxz.bestonline.com">abc-wxz</a><br>
...
...

resulting text

<a href="www.hip-hop.bestonline.com">hip hop</a><br>
<a href="www.sport-fitness.bestonline.com">sport fitness</a><br>
<a href="www.abc-wxz.bestonline.com">abc wxz</a><br>
...
...

Posted: Mon Jan 31, 2005 5:32 pm
by Abacre
Hi,

Search for:
<a href="(.*)">(.*)-(.*)</a>

Replace with:
<a href="$1">$2 $3</a>

Posted: Mon Jan 31, 2005 5:32 pm
by Artem
Thaks you very much ROMAN!