View Single Post
Old 05-02-2006, 12:42 PM  
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Changing links sitewide in Dreamweaver

After spending some time trying to figure out how to get rid of sponsor links in a fast way across an entire 'static' site, I (finally) discovered Dreamweaver can successfully use Regular Expressions to find the list of everchanging styles of links, whether they be banners or different text.
This goes in the 'Search For' box when finding within your source code option.
Code:
<a(.*?)(SOMETHING_IN_URL_UNIQUE_LIKE_YOUR_AFF_ID)(.*?)">(.*?\s*?.*?)</a>
If you want to save some of the data just use $1, $2, $3, respectively for each set of parentheses. If you wanted to keep the linking text(or image) you would use $4 somewhere within your 'Replace With' box. Of course if you are using banners using $4 will just leaved an unlinked sponsor banner.

Anyway, I know it's nothing special, but might save someone some time.
Oh, and if you use Dreamweaver this url might come in handy before your next crash.
http://mm-exporter.joexx.de/

Last edited by Quickdraw; 05-02-2006 at 12:43 PM..
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote