• Login
Community
  • Login

Search failing

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 4 Posters 310 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.
  • P
    Peter Hudson
    last edited by Aug 16, 2023, 7:09 PM

    Search quit working for the “^” symbol. So I upgraded to the latest version and it still doesn’t work. Search “backword” and search “Match whole word only” are greyed out too. That has never happened before. Since reinstalling didn’t help, how do I reset to something that works?
    Notepad++ v8.5.6 (64-bit)
    Build time : Aug 15 2023 - 15:29:28
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line : “C:\Program Files\Notepad++\change.log”
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Enterprise (64-bit)
    OS Version : 21H1
    OS Build : 19043.2364
    Current ANSI codepage : 1252
    Plugins :
    mimeTools (2.9)
    NppConverter (4.5)
    NppExport (0.4)

    T P 2 Replies Last reply Aug 16, 2023, 7:25 PM Reply Quote 0
    • T
      Terry R @Peter Hudson
      last edited by Terry R Aug 16, 2023, 7:27 PM Aug 16, 2023, 7:25 PM

      @Peter-Hudson said in Search failing:

      Search quit working for the “^” symbol.

      What is your search mode? The ^ symbol is called a meta character in regular expression mode, it refers to the zero width position right at the start of a line. If in this mode you need to enter \^ to get the search engine to recognise it as a normal character.

      Terry

      PS how about a screen image of your issue, maybe with some sample text showing the search failing. There may well be other info we can glean from an image that will help identify the issue. You can just paste it directly into your next post.

      P 1 Reply Last reply Aug 16, 2023, 11:49 PM Reply Quote 2
      • P
        PeterJones @Peter Hudson
        last edited by Aug 16, 2023, 7:31 PM

        @Peter-Hudson said in Search failing:

        Search “backword” and search “Match whole word only” are greyed out

        … then @Terry-R’s guess of you being in Regular Expression mode is right, because that’s the only search mode that greys those out.

        So, you will either need to escape the ^ like \^ in your search,
        c5f06a6f-209c-4983-8a99-256cb2ac8ad6-image.png
        or change back to Normal search mode lile:
        073b80b1-8c73-4179-bdd3-6cd9171f56b1-image.png

        1 Reply Last reply Reply Quote 2
        • P
          Peter Hudson @Terry R
          last edited by Aug 16, 2023, 11:49 PM

          @Terry-R
          Okay, you’re right that explains it. Somehow I had clicked “Regular Expression” accidentally. When I changed back to “Normal” it started working without having to put the escape character in front of it. And that’s also what caused the top 2 search choices to be grayed out.

          Thanks,
          Peter

          1 Reply Last reply Reply Quote 1
          • M
            Mark Olson
            last edited by Mark Olson Aug 16, 2023, 11:50 PM Aug 16, 2023, 11:50 PM

            FYI, see here for more on characters that will need to be escaped in Regular Expressions mode.

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