Reputation: 3240
How can I remove lines that only contain javadoc comment using Eclipse Find/Replace prompt.
I have following scenario,
/** The panel. */
private JPanel panel;
/** The text field. */
private JTextField textField1;
/** The text field_1. */
private JTextField textField2;
/** The button. */
private JButton button;
/** The combo box. */
private JComboBox comboBox;
Now I want to remove the entire line which contain /**
What regex should I use in eclipse to search and remove the lines ?
Upvotes: 0
Views: 73
Reputation: 336158
/\*\*.*\r?\n?
matches an entire line that starts with /**
including (if present) any following newline characters.
/\*\*.*?\*/
matches a single comment.
Upvotes: 1