Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Find and Replace

    Help wanted · · · – – – · · ·
    3
    6
    166
    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 Bean
      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?

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        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 Bean Neil Schipper 2 Replies Last reply Reply Quote 3
        • Tiến Bean
          Tiến Bean @PeterJones last edited by

          @peterjones thanks you 🥳

          1 Reply Last reply Reply Quote 0
          • Neil Schipper
            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.

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

              @neil-schipper ,

              That’s probably a good clarification

              PeterJones 1 Reply Last reply Reply Quote 1
              • PeterJones
                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
                Copyright © 2014 NodeBB Forums | Contributors