In Notepad++ (v5.9), I want to search for files which contain two words. For example, I would like to find all text files in a directory that have both Alpha
and Bravo
in the file. They may not be next to each other and they may have multiple occurrences of either. I just want to find the files that have at least one instance of each.
Is there a way to structure this search without resorting to Regular Expressions?
Thanks for the advice.
Best Answer
Edit: sorry, I missed the without resorting to Regular Expressions. Sadly, you'll need to use a RegEx to do this as far as I know. I've setup the RegEx below for you.
Under find in files use
Alpha.*Bravo
in the Find what select Regular expression and .matches newline. Select the Directory to search in and you should find your files.If you need them in other order as well, you can do the same inverting the words:
Bravo.*Alpha
If there is different case possibilities you'll need to show that IE
[aA]lpha.*[bB]ravo