Search code examples
regexdreamweaverslash

Remove Forward Slash from html tags in Dreamweaver


I want to use the find and replace feature in Dreamweaver to search for meta tags and link tags with /> in them and replace them with >.

For example:

<meta name=..... />

Replace with:

<meta name=.... >

I discovered that this helps me find them all: <META[^>]*\/>

but how do I replace them so that all the meta content is there EXCEPT the forward slash?


Solution

  • You can search for this:

    <(META[^>]*)\/>
    

    And replace with this:

    <($1)>