I would like to search multiple files via eclipse for the following 2 lines:
@Length(max = L_255)
private String description;
and replace them with these two:
@Length(max = L_255, message="{validator.description.len}")
private String description;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Search are multi-line by default in Eclipse when you are using regex:
replaced by:
It works perfectly in a File Search triggered by a CTRL–H.
As mentioned in Tika‘s answer, you can directly copy the two lines selected in the “Containing Text” field: those lines will be converted as a regexp for you by Eclipse.