• Login
Community
  • Login

Find no longer Finds anything

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
replacefind
16 Posts 11 Posters 17.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.
  • T
    Terri Paxton
    last edited by Feb 7, 2017, 2:44 PM

    What happened to find and replace and how do I fix it? I am not a ‘programmer’. I work in web design and frequently use this to remove the infernal <wbr> google inserts when a client sends an embed code (thereby breaking it). Or I did, until recently. Now I can even have it highlighted and it still says its not there.

    I’m forced to resort to transferring the code to my personal mac, opening in Text Wrangler, which has NO problem finding and replacing the gunk. But that is my personal computer and Text Wrangler doesn’t come for PC, I’ve always just used this. Until now, Notepad ++ worked great.

    Is there some reason this incredibly useful find and replace has blown to bits? I’m asking it to do something that should be as simple as ABC here.

    Running Version 7.2.2 and here is the debug stuff.
    Notepad++ v7.2.2 (32-bit)
    Build time : Nov 27 2016 - 16:31:07
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10
    Plugins : ComparePlugin.dll mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll

    C 1 Reply Last reply Feb 7, 2017, 11:24 PM Reply Quote 1
    • C
      Claudia Frank @Terri Paxton
      last edited by Feb 7, 2017, 11:24 PM

      @Terri-Paxton

      Must be something specific with your installation or usage.
      Could you make a screenshot and upload it. E.g imgur (no registration needed)
      It should show the find dialog reporting the can’t find text message
      together with the text with should be searched.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • A
        AdrianHHH
        last edited by Feb 8, 2017, 9:08 AM

        This question is very similar to https://notepad-plus-plus.org/community/topic/13235/search-and-replace-not-working-properly where I wrote the following:

        Occasionally I leave the “In selection” tick box on the replace window ticked, then I get very confused about why a replace does not do what I want. Unticking the “In selection” box and shouting at my mouse for clicking the wrong things lets the replacement work OK.

        1 Reply Last reply Reply Quote 0
        • J
          John Bowman
          last edited by Feb 8, 2017, 3:06 PM

          maybe you have Whole Word Only selected in the find dialog

          1 Reply Last reply Reply Quote 0
          • T
            Terri Paxton
            last edited by Feb 14, 2017, 2:30 PM

            :O I think the Whole Word Selected might’ve been it. I find it baffling however and am eyeing the updates suspiciously. I can believe I might accidentally check it on one computer but two? Hopefully, now I can be rid of the curse of wbr code (since Google obviously cares not that every web designer sent embed code via gmail is snarling at them).

            1 Reply Last reply Reply Quote 0
            • N
              Nerissa Belcher
              last edited by Apr 20, 2017, 1:41 PM

              After NPP stopped finding things I fixed it by downloading the PythonScript_1.0.8.0.msi and choosing “repair” during the installation. Search worked after the repair.

              http://npppythonscript.sourceforge.net/download.shtml

              1 Reply Last reply Reply Quote 0
              • A
                Andrés Zsögön
                last edited by Apr 20, 2017, 3:09 PM

                Now that we are on it, the “whole word” option is not that practical anyway, eg, it considers a whole word that which is surrounded by spaces. If another character is found next to it, such as (), [], or {}, it is not a “while word” anymore for Npp.

                S 1 Reply Last reply Apr 20, 2017, 3:33 PM Reply Quote 0
                • S
                  Scott Sumner @Andrés Zsögön
                  last edited by Apr 20, 2017, 3:33 PM

                  @Andrés-Zsögön

                  “whole word” IS practical.

                  A “whole word” is not strictly defined as “that which is surrounded by spaces”.

                  If any of (, ), [, ], {, } is next to what looks like a word, it IS still found when doing a search with “whole word” option enabled, for example, all 12 of the following lines will be found when searched for “abc”:

                  abc(
                  abc)
                  abc[
                  abc]
                  abc{
                  abc}
                  (abc
                  )abc
                  [abc
                  ]abc
                  {abc
                  }abc
                  

                  But…perhaps I am misunderstanding what is meant by some of your statements…

                  A pretty good discussion of what makes up a “word” and how the search engine deals with it was done by @guy038 here: https://notepad-plus-plus.org/community/topic/13004/bugs-in-normal-search-for-v7-2-2-on-windows-7

                  1 Reply Last reply Reply Quote 2
                  • A
                    Andrés Zsögön
                    last edited by Andrés Zsögön Apr 26, 2017, 1:49 PM Apr 26, 2017, 1:48 PM

                    @Scott-Sumner

                    I’m afraid it doesn’t. Kindly search for $abc using the Entire Word option with these:

                    bla $abc(
                    bla $abc)
                    bla $abc[
                    bla $abc{
                    bla {$abc} 404_NOT_FOUND
                    bla ($abc 404_NOT_FOUND
                    bla )$abc 404_NOT_FOUND
                    bla [$abc 404_NOT_FOUND
                    bla ]$abc 404_NOT_FOUND

                    As you can see, anything with a (, ), [, ], {, } before it won’t be found by Notepad++ 7.3.3 for Windows (X86).

                    This makes the Entire Word option so untrustworthy that I can never use it, not with PHP at least.

                    S 1 Reply Last reply Apr 26, 2017, 2:23 PM Reply Quote 0
                    • S
                      Scott Sumner @Andrés Zsögön
                      last edited by Scott Sumner Apr 26, 2017, 2:24 PM Apr 26, 2017, 2:23 PM

                      @Andrés-Zsögön

                      Well, that case is discussed by @guy038 in the earlier posting I referenced; following the logic presented there indicates that your example will indeed not be matched.

                      However, there is a way to get your desired behavior. In Settings (menu) -> Preferences -> Delimiter, change the “Word character list” as shown here: http://imgur.com/a/FhKc1

                      Textually, change the radio button so that “Add your character…” is selected, and add the $ to the text box below it.

                      1 Reply Last reply Reply Quote 1
                      • A
                        Andrés Zsögön
                        last edited by Apr 26, 2017, 4:36 PM

                        @Scott-Sumner

                        Hey that worked perfectly, thanks. The name of the options is not very serious… a gray label with a warning instead of the explanation between parentheses would be more adequate. Is there some place where I can make suggestions for the GUI, to make it more professional and less… amateur? Thanks.

                        S 1 Reply Last reply Apr 26, 2017, 5:36 PM Reply Quote 0
                        • S
                          Scott Sumner @Andrés Zsögön
                          last edited by Apr 26, 2017, 5:36 PM

                          @Andrés-Zsögön

                          Report an issue or make a feature request here: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/

                          1 Reply Last reply Reply Quote 1
                          • Gera OvelcoreG
                            Gera Ovelcore
                            last edited by Jan 7, 2019, 5:49 AM

                            I was having this issue and it seems i checked ‘match whole word only’. un-checking option fixed it.

                            1 Reply Last reply Reply Quote 0
                            • Charles DorsettC
                              Charles Dorsett
                              last edited by Jun 25, 2020, 8:26 AM

                              Well, somehow I managed to deselect ‘Wrap around’ - this meant that I could only find instances that were below the cursor, which produced random results. Now it works fine.

                              Alan KilbornA 1 Reply Last reply Jun 25, 2020, 11:44 AM Reply Quote 0
                              • Alan KilbornA
                                Alan Kilborn @Charles Dorsett
                                last edited by Jun 25, 2020, 11:44 AM

                                @Charles-Dorsett said in Find no longer Finds anything:

                                …which produced random results

                                I could only find instances that were below the cursor,

                                It doesn’t sound like you achieved “random results”.
                                It seems like Notepad++ did what it was told to do, predictably and consistently.

                                1 Reply Last reply Reply Quote 1
                                • Daniel Santamaria RubioD
                                  Daniel Santamaria Rubio
                                  last edited by Mar 25, 2021, 11:30 AM

                                  I had the same issue and I managed to solve it.
                                  You need to have regular expression tick box selected and wrap around tickbox aswell.

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