ignore double filtering in same line when find word



  • when I find some word with find all function then there are several lines in find result window if the word is several times in same line.
    how could I fix it ?



  • @Junseok-Park

    You can’t. It isn’t broken. That’s how it is designed to work. However, you could craft a regular expression search to find just ONE of the matches per line if that’s what you want.



  • @Junseok-Park
    For example, searching in regular expression mode for

    XYZ.*\K$
    

    would find every line containing “XYZ” (one time only, no matter how many times “XYZ” was on a line) and nothing in the find window would be highlighted.

    If you want to highlight the first “XYZ” and everything after it, leave the “\K” out of the regex.


Log in to reply