Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8424581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:01:59+00:00 2026-06-10T04:01:59+00:00

Using the eclipse Search and replace functionality, I was to search for a single

  • 0

Eclipse find and replace

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:02:04+00:00Added an answer on June 10, 2026 at 4:02 am

    enter image description here

    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:

    <!-- Google Analytics -->\n     <script type="text/javascript">\n code\n
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add log4j to a legacy software using eclipse search/replace. The idea
I am using Eclipse Ganymede 3.4.2. The search bar in both Search and Find/Replace
I am using Eclipse IDE , i need to search a String inside my
Using Eclipse IDE. The line: getClass().getResource(/res/bitmaps/image.png); returns null . I have created the res
I just started using Eclipse but already I have a small problem. At first
When using the file search function in eclipse to find a bit of text
I'm using Eclipse to do a text search on a Java Application. The list
How would one automate a commonly used search replace action in Eclipse? My current
I have a problem using the Java search function in Eclipse on a particular
I've been using Eclipse as my IDE. I also use it to export my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.