Tips and tricks

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

Leave a comment

Your email address will not be published

{"type":"main_options","images_arr":"'#ffffff'","bg_slideshow_time":"0","site_url":"https:\/\/digitalzoomstudio.net","theme_url":"https:\/\/digitalzoomstudio.net\/wp-content\/themes\/qucreative\/","is_customize_preview":"off","gallery_w_thumbs_autoplay_videos":"off","base_url":"https:\/\/digitalzoomstudio.net"}