• Login
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 539 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.
  • W
    WELL Max
    last edited by Nov 30, 2022, 3:46 PM

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

    A 1 Reply Last reply Nov 30, 2022, 3:48 PM Reply Quote 0
    • A
      Alan Kilborn @WELL Max
      last edited by Alan Kilborn Nov 30, 2022, 3:50 PM Nov 30, 2022, 3:48 PM

      @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?

      W 1 Reply Last reply Nov 30, 2022, 3:56 PM Reply Quote 0
      • W
        WELL Max @Alan Kilborn
        last edited by Nov 30, 2022, 3:56 PM

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

        A 1 Reply Last reply Nov 30, 2022, 4:08 PM Reply Quote 0
        • A
          Alan Kilborn @WELL Max
          last edited by Nov 30, 2022, 4:08 PM

          @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.

          W 1 Reply Last reply Nov 30, 2022, 4:21 PM Reply Quote 0
          • W
            WELL Max @Alan Kilborn
            last edited by Nov 30, 2022, 4:21 PM

            @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

            A 1 Reply Last reply Nov 30, 2022, 4:27 PM Reply Quote 0
            • A
              Alan Kilborn @WELL Max
              last edited by Nov 30, 2022, 4:27 PM

              @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
              • A
                Alan Kilborn
                last edited by Nov 30, 2022, 6:34 PM

                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.

                W 1 Reply Last reply Dec 1, 2022, 11:39 AM Reply Quote 2
                • W
                  WELL Max @Alan Kilborn
                  last edited by Dec 1, 2022, 11:39 AM

                  @Alan-Kilborn Thank you very much for your patience

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