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 1.1k Views 1 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.
    • WELL MaxW Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    WELL Max @Alan Kilborn
                    last edited by

                    @Alan-Kilborn Thank you very much for your patience

                    1 Reply Last reply Reply Quote 0

                    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