
Using the eclipse Search and replace functionality, I was to search for a single line string and replace it with a multi-line string. I already attempt to use \n and /n to insert a new line.
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.
You just have to ensure the “Regular Expression” box is checked before performing the search. Then in the replace dialog you will also have a “Regular Expression” box which must be checked. Then you separate each new line with a new line character “\n” in the replacement string.
Example: