1
Answer

How to replace text with \n using regex?

vikas potekar

vikas potekar

8y
419
1
  • Hi All,

    We need to replace it with new line with the same number of new line occurrence in source file. Example below..

    *******<Source Content Starts Here>*******
    john<surname value
    < !-- New Line Here in SOURCE for your reference -->
    < !-- New Line Here in SOURCE for your reference -->
    ="878">macky</surname>
    *******<Source Content Ends Here>*******

    *******<Target Content Starts Here>*******
    john
    < !-- New Line MUST be retain in TARGET for your reference -->
    < !-- New Line MUST be retain in TARGET for your reference -->
    macky
    *******<Target Content Ends Here>*******

    Thanks in advance.

Answers (1)