vikas potekar

vikas potekar

  • NA
  • 21
  • 4.4k

How to replace text with \n using regex?

Apr 11 2016 7:16 AM
  • 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)