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 180 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.
    • hub kurversH
      hub kurvers
      last edited by

      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.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @hub kurvers
        last edited by

        @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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors