Community
    • Login

    Find and Replace

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 741 Views 3 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.
    • Tiến BeanT Offline
      Tiến Bean
      last edited by

      I’m having a letter replacement problem:
      find: (n)|(u)|(o)
      replace: (?1&)(?2Ã)(?34)

      I want the o to be a 4. But maybe this Notepad++ is misreading the order as 34. So is there any way I can turn the o into a 4 without error?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @Tiến Bean
        last edited by

        @tiến-bean

        https://npp-user-manual.org/docs/searching/#substitution-conditionals

        (?{3}4) for the last term

        Tiến BeanT Neil SchipperN 2 Replies Last reply Reply Quote 3
        • Tiến BeanT Offline
          Tiến Bean @PeterJones
          last edited by

          @peterjones thanks you 🥳

          1 Reply Last reply Reply Quote 0
          • Neil SchipperN Offline
            Neil Schipper @PeterJones
            last edited by

            @peterjones said in Find and Replace:

            https://npp-user-manual.org/docs/searching/#substitution-conditionals
            (?{3}4) for the last term

            Peter, that substitution expression (which provides the desired functionality) contradicts the spec, which says that without the {}, “a single decimal digit (0-9)” will be used to identify the match group to test. Perhaps the spec should indicate that in the basic case of ?ℕYesPattern:NoPattern, YesPattern must not start with a digit.

            PeterJonesP 1 Reply Last reply Reply Quote 2
            • PeterJonesP Online
              PeterJones @Neil Schipper
              last edited by

              @neil-schipper ,

              That’s probably a good clarification

              PeterJonesP 1 Reply Last reply Reply Quote 1
              • PeterJonesP Online
                PeterJones @PeterJones
                last edited by

                @peterjones said in Find and Replace:

                @neil-schipper ,

                That’s probably a good clarification

                issue #349 => PR #350

                1 Reply Last reply Reply Quote 2

                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