Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Search and replace text lines at same time possible?

    Help wanted · · · – – – · · ·
    2
    3
    78
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Melanie Niedfeld
      Melanie Niedfeld last edited by

      Hello,

      it is possible to search and replace several lines in notepad++ with another text at the same time?
      With the normal search and replace function you can only replace 1 line. But
      i want replace several lines with other text at the same time.

      Example original text file:

      COMMENT 1

      BEGIN
      Here ist beautiful text
      And sometimes i need sleep
      END

      COMMENT 2

      BEGIN
      Here ist beautiful text
      And sometimes i need sleep
      END

      I want replace
      Here ist beautiful text
      And sometimes i need sleep

      with the text:
      Car
      House

      The new text file would be:

      COMMENT 1

      BEGIN
      Car
      House
      END

      COMMENT 2

      BEGIN
      Car
      House
      END

      Regards

      dinkumoil 1 Reply Last reply Reply Quote 0
      • dinkumoil
        dinkumoil last edited by

        Because the requirement of moderation of postings created by new members is still activated, this posting was lost in the Post Queue for 2 days. This comment is only for bumping it up in the list of recent postings.

        1 Reply Last reply Reply Quote 0
        • dinkumoil
          dinkumoil @Melanie Niedfeld last edited by

          @Melanie-Niedfeld

          It is possible by activating extended search mode and using escape sequences for line breaks (CrLf):

          1c9191f5-66bc-4387-8ee1-1c2bd2c68038-grafik.png

          1 Reply Last reply Reply Quote 3
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors