Community
    • Login

    Find and Replace

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

          @peterjones thanks you 🥳

          1 Reply Last reply Reply Quote 0
          • Neil SchipperN
            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
              PeterJones @Neil Schipper
              last edited by

              @neil-schipper ,

              That’s probably a good clarification

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