• Login
Community
  • Login

Search and replace inside the same blocks

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 887 Views
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.
  • A
    Anatol Sam
    last edited by Oct 8, 2018, 10:30 AM

    Is it possible to do search and replace only inside the same blocks of several strings

    1 Reply Last reply Reply Quote 0
    • A
      Anatol Sam
      last edited by Oct 8, 2018, 11:15 AM

      For example: I marked a group of five lines. I want to find the same groups throughout whole text and make the same replacements for each of them. Is it possible?

      1 Reply Last reply Reply Quote 0
      • D
        dinkumoil
        last edited by Oct 8, 2018, 11:33 AM

        You need a featur called “multi-line find and replace”. E.g. the ToolBucket plugin contains it.

        1 Reply Last reply Reply Quote 0
        • G
          guy038
          last edited by Oct 8, 2018, 11:38 AM

          Hello, @anatol-sam,

          I think so. But we need some details, about the text to change !

          Simply, give us one or several example(s) of the bunch(es) of text which you want to search AND the corresponding text which you expect, for each bunch, after the S/R operation !

          To be sure that your text will NOT be interpreted with the Markdown syntax, used on this site, simply wrap all your BEFORE and AFTER stuff with, either :

          • The starting line ```z and the ending line ``` ( using the backquote / backtick character ` )

          • The starting line ~~~z and the ending line ~~~ ( using the tilde character ~ )

          For instance :

          I have :

          ```z
          Your BEFORE stuff
          ```

          And I would like :

          ~~~z
          Your AFTER stuff
          ~~~

          So, in short, give us some material to think about :-))

          Best Regards

          guy038

          1 Reply Last reply Reply Quote 1
          1 out of 4
          • First post
            1/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors