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 2
Title Test Details Pattern Title
Expression
/\*((?!\*/)[\d\D\s])*\*/
Description
Matches /* style comments */. Matches whitespace (so can detect tabs, etc.) Problems with nested comments.
Matches
/* CSS comments */ | /* multi-line SQL/CSS/Etc comments */
Non-Matches
<!-- doesn't match --> | -- won't match and //won't match
Author Rating: Not yet rated. Mike Campbell
   Displaying page 1 of 1 pages; Items 1 to 2

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