Community
    • Login

    find and replace:why i just can type 3640 bytes in find Input box

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 2 Posters 538 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.
    • WELL MaxW
      WELL Max
      last edited by

      Regex cannot take effect after exceeding 3640 bytes,I need to type a super long find,plz help me

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @WELL Max
        last edited by Alan Kilborn

        @WELL-Max

        The limit is 2046 characters in the Find what input box. It’s a hard-limit, here’s a REFERENCE.

        Not sure where you are getting 3640 from? Can you explain?

        WELL MaxW 1 Reply Last reply Reply Quote 0
        • WELL MaxW
          WELL Max @Alan Kilborn
          last edited by

          @Alan-Kilborn I keep typing in the input box until the location cannot be displayed

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @WELL Max
            last edited by

            @WELL-Max said in find and replace:why i just can type 3640 bytes in find Input box:

            I keep typing in the input box until the location cannot be displayed

            From the user manual:

            Any text entered/pasted into these boxes beyond the 2046th character is simply ignored when an action is invoked.

            WELL MaxW 1 Reply Last reply Reply Quote 0
            • WELL MaxW
              WELL Max @Alan Kilborn
              last edited by

              @Alan-Kilborn yes i find a new way to Break out the limit
              https://stackoverflow.com/questions/11389466/multiple-word-search-and-replace-in-notepad

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Alan KilbornA
                Alan Kilborn @WELL Max
                last edited by

                @WELL-Max

                Without more explanation from you, we really don’t know how that stackoverflow post helps your situation.

                It appears you may be wanting to do a “replace from list” application, but doing it the way of the stackoverflow post seems like it would not really help the original issue you were having.

                But…if you’re problem is solved, that’s great.

                1 Reply Last reply Reply Quote 0
                • Alan KilbornA
                  Alan Kilborn
                  last edited by

                  The PythonScript plugin can do searches where the find text is longer than the N++ UI limit of 2046 characters. I tried something like 37000 characters and it had no trouble with that.

                  But interfacing to it is not “simple”. The typical way would be through PythonScript’s “prompt” box, example:

                  bc8e3019-5df3-4e76-8d6f-9fef07a72d9d-image.png

                  The problem with that is that the maximum number of characters enterable there is 999. :-(

                  So, while PythonScript can find long expressions, interfacing to doing so is a bit difficult.

                  WELL MaxW 1 Reply Last reply Reply Quote 2
                  • WELL MaxW
                    WELL Max @Alan Kilborn
                    last edited by

                    @Alan-Kilborn Thank you very much for your patience

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors