Community
    • Login

    Search and replace inside the same blocks

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.2k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors