Title |
Test
Find
remove HTML comments from html page
|
Expression |
(\<!--\s*.*?((--\>)|$)) |
Description |
matches comments <!-- --> in string. Singleline option must be enabled. It works well also with multiple comment start tags such as: <!--this is comment <!--and this as well and end-- of comment
is!-- >right now-->. It also matches comments in between script or style tags <script> <!-- --> </script> |
Matches |
<!-- comment <!-- continuing -- >and ends now--> |
Non-Matches |
< !-- not comment -->, <a href="--">, all other html code |
Author |
Rating:
Not yet rated.
David Havl
|
Source |
|
Your Rating |
|