Eclipse Find/Replace with Regex to comment lines
eclipse, java, regex
Solution
This is Jd-GUi, I've already needed the same regex :)
/\*.*?\*/
Problem
I have some classes that contains comments like as follow: ``` ... ... ... /* */ /* */ public void startApplication() /* */ { /* 57 */ initializeFields(); /* 58 */ this.run = true; /* 59 */ new Thread(this).start(); /* */ } /* */ /* */ public void stopApplication() { /* 63 */ this.run = false; /* */ } /* */ /* */ public void run() /* */ { ... ... ... ``` And i have to clean all `/* */` strings in my classes. Which regex should i use to do this with using Eclipse's Find/Replace tool?