Quantcast
Channel: Javascript – Digital Zoom Studio
Viewing all articles
Browse latest Browse all 15

Match lines with comments in them

$
0
0

The regex should be

(\/\/).*$

If you have a way to mark your useful comments. Like I have — to mark them, you can use it in the negative lookahead ( to filter only the unuseful comment )

(\/\/)(?! –)

You can use this in IDE such as PHPSTORM


Viewing all articles
Browse latest Browse all 15

Trending Articles