I want to find the number of lines containing a search term and ignore duplicates on the same line.
Open your Notepad++ instance. Press CTRL + SHIFT + F to open the " Find in Files " dialog. In the " Find what " input box, enter " \S+\s*$ " as the regular expression to find out the lines containing some text.
If you double click around 'Length' in status bar you will get a character count, word count . . . etc.
Try this out:
Issue Ctrl+F
Under search mode, select "Regular expression"
In your search term, type <your search term>.*$
(It is assumed that your search term contains only alphanumeric characters. You may need to perform necessary escape if your search term contains symbol.)
Select Count and the number of lines containing the search term will be displayed.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With