Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

HTML: removing all tags between a specific tag

  •  05-16-2007, 5:42 PM

    HTML: removing all tags between a specific tag

    Hello:

    I have thousands of HTML files in my site and I want to remove all tags inside the H1 tag.

    For example: In this case, I want to remove the following tags and their content <a><b><font>

    <h1 ALIGN="CENTER"><b><font>The best search engine is<a href="http://www.google.com">google</a> I think</b></font></h1>

     The result would be:

     <h1 ALIGN="CENTER">The best search engine is google I think</h1>

     
    How do I do this with a Regex? 

    Thanx a lot! 

    Filed under: ,
View Complete Thread