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

General discussions about Advanced Find and Replace
Post Reply
Artem

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

Post 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>
...
...

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Post by Abacre »

Hi,

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

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

Artem

Post by Artem »

Thaks you very much ROMAN!

Post Reply