Title |
Test
Find
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
|
Source |
|
Your Rating |
|
Title: test
Name: test
Date: 6/5/2007 9:36:04 AM
Comment:
linda john zoie
Title: Excellent, Thanks!
Name: Michael K. Campbell
Date: 6/21/2005 11:41:29 AM
Comment:
Excellent. Yeah, guess I should have looked at that a little more. \s\S was, of course, all it needed.
(Now I just need to worry about the look-aheads so that nesting works correctly... )
Title: the [\d\D\s] is unnecessarily complicated
Name: Randal L. Schwartz
Date: 6/21/2005 7:22:08 AM
Comment:
A simple [\s\S] would have done.