The below mentioned regex or regular expression can be used to find all the comments lines in HTML source code

\< ![^\>]#\>

If you want to clean up your html from comments than you can use the search and replace feature of variuos text editors that understand regex ( ultraedit recommened) and replace this regex string with an empty one

You can even use this regex in MS Frontpage to remove the commented text

Related posts:

  1. How to get IMEI code from Nokia, Samsung, LG mobile phone IMEI is the unique hardware number of the mobile phone, ...
  2. Notepad++ vs Ultraedit I have been using Ultra edit for many years now...
  3. Search and replace text in all files in Sub directories if you want to Search for a particular string or...
  4. FTP Files from Shell Script Here is a sample bash or shell script that will...

Trackback

no comment untill now

Add your comment now