Dreamweaver regular expressions

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Has anyone used dreamweaver regular expressions before? I'm trying to remove a load of code, named anchors, in one go that is the same apart from some numbers:

<a name=001>001</a>
<a name=002>001</a>
<a name=003>001</a>
<a name=004>001</a>

and so on.

I want to remove all the anchors and just leave the 001 text behind. I'm told that using regular expressions is the way to go but I never tried it before.

I had a go at reading this Adobe - Developer Center : Introduction to Regular Expressions in Dreamweaver but the guy prattles on for ages and I can't quite figure out from what he says what I need to type in my search box to remove the right bits.

Can any give a simple explanation?

Thanks.
 

Chilly

Balls of steel
Joined
Dec 22, 2003
Messages
9,047
find:<a\sname=???>
replace: nothing


then just do it on the </a> as normal
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Thanks, I did manage to figure something out eventually. I think it looked a bit different to that but I can't remember? Boils down to the same thing though probably.
 

Users who are viewing this thread

Top Bottom