I had to quickly remove single line comments from an Android project in Eclipse. I could not find any built in feature in Eclipse to do that. So I resorted to a simple regular expression:
(//[^\n]*)
This simple regex selects all the strings that begin with “//” and end with a new line. So all you have to do is use it in the find and replace option for a file or to apply to the whole project or multiple files do Search -> File. Also, make sure to select the “regular expression” check box.
This is something I did very quickly… so be careful since it might pick up some urls as well… like anything after the “//” part in “http://mysite.com/page.php”.
Quick and easy way to remove all single line (//) comments in Eclipse
Dive into the massive sandbox of EVE Online. Shape your destiny today. Trade alongside hundreds of thousands of pilots worldwide. Begin your journey
??????? ?????
vivod-iz-zapoya-cherepovec011.ru
????? ?? ????? ????
?????????? ???????? ? ???????? ??????
inernetvkvartiru-rostov004.ru
?????????? ??????
?????????? ????? ?? ?????
vivod-iz-zapoya-chelyabinsk007.ru
????? ?? ????? ????????????? ?????????
?????????? ????? ?? ?????
vivod-iz-zapoya-cherepovec012.ru
????? ?? ????? ????
?????????? ????????? ??????
inernetvkvartiru-rostov005.ru
???????? ???????? ? ???????
????? ?? ?????
vivod-iz-zapoya-chelyabinsk008.ru
????? ?? ????? ????
?????????? ????? ?? ?????
vivod-iz-zapoya-irkutsk007.ru
?????????? ????? ?? ????? ???????
???????? ???????? ??????
inernetvkvartiru-rostov006.ru
????????? ???????? ??????
????? ?? ?????
vivod-iz-zapoya-chelyabinsk009.ru
????? ?? ????? ????????????? ?????????
?????????? ????? ?? ????? ???????
vivod-iz-zapoya-irkutsk008.ru
????? ?? ?????
???????? ???????? ? ?????-??????????
inernetvkvartiru-spb004.ru
????????? ???????? ?? ??????
????? ?? ?????
vivod-iz-zapoya-cherepovec010.ru
??????? ?????