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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
<!--.*?-->
Description
Matches
<!-- <h1>this text has been removed</h1> --> | <!-- yada -->
Non-Matches
<h1>this text has not been removed</h1>
Author Rating: The rating for this expression. Tony Austin
Source Modified with the help of Gideon Engelberth
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: Extra escape
Name: Gideon Engelberth
Date: 4/4/2005 11:29:54 AM
Comment:
The escapes are not needed on a dash outside of a character class, so the following would be equivalent to your expression: <!--.*?-->


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