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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Strip Markup Tags
Expression
(<(!--.*|script)(.|\n[^<])*(--|script)>)|(<|&lt;)(/?[\w!?]+)\s?[^<]*(>|&gt;)|(\&[\w]+\;)
Description
This regex will match all text inside angle brackets and HTML comments.
Matches
<HTML> | <!-- | <script>
Non-Matches
plainText
Author Rating: Not yet rated. Burke
   Displaying page 1 of 1 pages; Items 1 to 1

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