Menu

#12 Grave character treated differently in whole word search

v4.4.7
accepted
4.4.6 (1)
3
2024-03-07
2020-11-14
Bill Horger
No

I was searching for a small string as a word. The string was "rs". When used in my application, it might be preceded by a variety of special characters, so I used the short string. But not all occurrences were found. Specifically when preceded by a grave character. There may be others as well, I don't know. When I tried to search by whole name including the leading grave character, nothing was found. If I removed the "Whole Word" selection, Astrogrep found it. Apparently even without regular expressions enabled, the grave character is treated differently(?).

Related

Support Requests: #12

Discussion

  • Jackslade

    Jackslade - 2020-11-17

    I'll take a look at this when I find some time.

    The whole word option does use a regular expression. The search text is escaped before being used as well, but perhaps the grave character is causing an issue with the regex.

     
    • Bill Horger

      Bill Horger - 2020-11-17

      Thanks, your explanation makes sense. I appreciate your efforts; love the
      product!

      Bill

      On Tue, Nov 17, 2020 at 9:45 AM Jackslade jackslade@users.sourceforge.net
      wrote:

      I'll take a look at this when I find some time.

      The whole word option does use a regular expression. The search text is
      escaped before being used as well, but perhaps the grave character is
      causing an issue with the regex.


      Status: open
      Group: v4.2.4
      Labels: 4.4.6
      Created: Sat Nov 14, 2020 04:34 PM UTC by Bill Horger
      Last Updated: Sat Nov 14, 2020 04:34 PM UTC
      Owner: nobody

      I was searching for a small string as a word. The string was "rs". When
      used in my application, it might be preceded by a variety of special
      characters, so I used the short string. But not all occurrences were found.
      Specifically when preceded by a grave character. There may be others as
      well, I don't know. When I tried to search by whole name including the
      leading grave character, nothing was found. If I removed the "Whole Word"
      selection, Astrogrep found it. Apparently even without regular expressions
      enabled, the grave character is treated differently(?).


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/astrogrep/support-requests/12/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #12

  • Jackslade

    Jackslade - 2022-07-17
    • Group: v4.2.4 --> v4.4.7
     
  • Jackslade

    Jackslade - 2024-03-07
    • status: open --> accepted
    • assigned_to: Jackslade
    • Priority: 1 --> 3
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.