How to count lines containing a search term with notepad++?

notepad++

Solution

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.

Problem

I want to find the number of lines containing a search term and ignore duplicates on the same line.

Original source