• Login
Community
  • Login

Find & Replace Not Working

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 1.2k 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
    Ward Scott
    last edited by May 27, 2020, 2:01 PM

    I am not new to Notepad++ or complex searches but, for some reason, a simple N++ search across multiple files yields no results. Is there a known issue that possibly prevents N++ from searching inside of Word tables? It is all I can think of.

    My .docx files all contain the following:
    snagit_help1.jpg

    And my Find&Replace params are:
    snagit_help2.jpg

    And yet F&R always results in “0 hits in 0 files”. I have tried changing the filter to *.docx and *.doc, changing search modes, and yes the directory is correct. Looking at the search results seems to indicate that it is not the table that is the issue but locating the fail? I even moved the folder from a OneDrive share to my C: drive to ensure that the files could be located but nothing is working.

    Any suggestions/help would be greatly appreciated!

    M P 2 Replies Last reply May 27, 2020, 2:21 PM Reply Quote 0
    • M
      Michael Vincent @Ward Scott
      last edited by May 27, 2020, 2:21 PM

      @Ward-Scott

      I’m not sure this is going to work. M$ Word .doc and .docx files are binary files (not plain text) and Notepad++ is a text editor. The Find in Files function searching may not find the “plain text” in your “Find what” text box in a bunch of binary (not “plain text”) files.

      Cheers.

      1 Reply Last reply Reply Quote 2
      • P
        PeterJones @Ward Scott
        last edited by PeterJones May 27, 2020, 2:33 PM May 27, 2020, 2:32 PM

        @Ward-Scott ,

        There’s a FAQ for that: in short, docx aren’t text files, and you cannot expect Notepad++ (a Text Editor) to be able to search for literal text in a binary-encoded format like docx.

        Notepad++ search-in-files searches for literal bytes (or multibyte characters) in the files on disk, but the docx compresses and otherwise encodes text so that the bytes in the docx file are indistinguishable from random noise to Notepad++.

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