Quantcast
Viewing latest article 4
Browse Latest Browse All 15

Match lines with comments in them

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 latest article 4
Browse Latest Browse All 15

Trending Articles