Community
    • Login

    Search and replace inside the same blocks

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 874 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.
    • Anatol SamA
      Anatol Sam
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • Anatol SamA
        Anatol Sam
        last edited by

        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
        • dinkumoilD
          dinkumoil
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • guy038G
            guy038
            last edited by

            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors