I have a PHP file open in editor like Geany/Notepad++ which has both type of comments single-line and block-comments.
Now as block-comments are useful for documentation, I only want to remove single-line comments starting with //~ or #. Other comments starting with // should remain if they are not starting line from //.
How can I do that with a regular expression? I tried this one below, but I get stuck up in escaping slash and also including #.
^[#][\/]{2}[~].*