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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
<!--[\s\S]*?-->
Description
Removes pesky comments and commented javascript from HTML
Matches
<!-- comments --> | <!-- x = a > b - 3 -->
Non-Matches
<COMMENTS>this is a comment</COMMENTS>
Author Rating: Not yet rated. Lewis Moten
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

Title: Conformity?
Name: Ted
Date: 2/24/2004 10:46:26 PM
Comment:
<!-- ---> isn't a valid comment according to W3C recommendations, but I admit HTML parsers are a bit lax about that generally.


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