RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find HTML Tag Remover
Expression
<\/?(tag1|tag2)[^>]*\/?>
Description
This is expression is good if you need to clean up some code (like from using DW Design View or Front Page). Just the "tag1" and "tag2" with the tags you want, and you can add more by putting a | inbetween each tag.
Matches
&lt;tag1 name="input" id="input"&gt; | &lt;tag2&gt; | &lt;tag1 src="/home.jpg" /&gt; | &lt;/tag1&gt;
Non-Matches
&lt;tag1 | tag2&gt;
Author Rating: Not yet rated. Kerry Jones
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials