Forum Moderators: phranque

Message Too Old, No Replies

Dreamweaver Find & Replace Strings

... hoping someone can assist

         

austtr

1:41 am on Apr 17, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I suspect my problem has a very simple solution but I am not experienced enough in creating Regular Expressions to see it. Any help would be appreciated as I am going around in circles and getting nowhere.

The task is to add rel="nofollow" to the end of hundreds of unique affiliate links. Each link ends with a unique numeric variable for each product. eg. ?id=1234">

What I want to end up with is ?id=1234" rel="nofollow">

Using Dreamweaver Search & Replace (in regular expression mode) I can find all the links using a Find string of:

?id=\d*">

What I can't figure out is the Replace string that adds the nofollow on the end.

TIA

lammert

10:50 pm on Apr 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In Dreamweaver search and replace expressions, $1 represents the first variable part of the search expression. So you should replace with something like

$1" rel="nofollow


Maybe you need some testing to get it right, because I currently have no Dreamweaver here to test it.