RegEx to Find single line comments

Searches for comments using pound sign, double hyphen or double forward slash as identifiers
^([\ |\t]*)([\#|\-\-|\/\/]+.*)
Posted by
Snippet Viewed 1861 times.

Share your RegEx code snippets:

  • Get some recognition & link back to your site.

 

Submit | Browse

Most Recent regex snippets

Most Viewed