Skip to content

Strip links in HTML using Dreamweaver

I was putting together some “preview” HTML pages and needed to make sure the links didn’t go anywhere odd.  So I found out how to quickly strip out all the links from an HTML document using Dreamweaver’s regular expressions and find and replace.

It’s pretty easy, just put this in the find field:

<a href='(.*)’>

and this in the replace:

<a href=’#’>

And make sure to select “Use regular expression,” just like this:


Published inCSS/HTMLScripting

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *