• Login
Community
  • Login

find in files with regular expression doesn't show result if only 1 hit

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 205 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.
  • H
    hub kurvers
    last edited by Jul 1, 2021, 12:14 PM

    I am searching a number of files by a ‘regular expression’ ‘Find in files’. If there are multiple hits in a file, they are shown correctly in the results. If there is only 1 hit, I do see in the results that there is a hit, but it always shows line 1 as the result instead of the correct line number. If I open the file in Notepad++ and then run a ‘Find’ with the same regular expression, the correct hit is shown. And the problem does not occur with ‘normal’ or ‘extended’ search via ‘Find in files’ either. I just updated to version 8.1 (64 bit, Windows 10), but I see no improvement.

    A 1 Reply Last reply Jul 1, 2021, 12:16 PM Reply Quote 0
    • A
      Alan Kilborn @hub kurvers
      last edited by Jul 1, 2021, 12:16 PM

      @hub-kurvers

      How about showing a demo of that, where you provide specifics?
      Some test data, the actual regex used, that kind of thing?
      Otherwise, I don’t think anyone will be able to help you.

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