Hello, @Roberts-Rozis, @Peterjones, @dennis-bulgrien, @coises and All,
@Coises, I did some tests with my D USB key and with your Search++ plugin and the following generic regexes solve the problem nicely :
So, @Roberts-Rozis and @dennis-bulgrien :
Select The Plugins > Search++ > Search in Files... option
Select your média (C, D, … ) on the left and don’t forget to check the Subfolders option and, possibly, the Hidden files option
Select the Reg. exp. option for the Filter : type
In the filter box :
• For a search of any file, even WITHOUT extension, between level N minimum and M maximum, enter : ^(?:[^\\]+\\){N,M}[^\\]+
• For a search of any file, WITH an extension, between level N minimum and M maximum, enter : ^(?:[^\\]+\\){N,M}[^\\]+\..+
• For a search of any file with the EXACT extension 'txt' or 'log' or 'ini', between level N minimum and M maximum, enter : ^(?:[^\\]+\\){N,M}[^\\]+\.(?:txt|log|ini)$
You may also add a size and/or a date condition
Of course, check your desired search options
Finally, click on the Find in Files button
IMPORTANT :
Replace the letters N and M by true digits, with the condition N <= M. The M value may be missing !
The syntax of these regexes are specific to the Search++
These regexes allow any search in an arborescence, from level N minimum to level M maximum. However :
You may search from level 0, if necessary
You can go through all the structure with the 0, or the N, syntaxes
Note that you can simulate the Search++ filtering mode by using one of the regexes below, directly in Notepad++
^(?:[^\\\r\n]+\\){2,4}[^\\\r\n]+$
^(?:[^\\\r\n]+\\){2,4}[^\\\r\n]+\..+
^(?:[^\\\r\n]+\\){2,4}[^\\\r\n]+\.(?:txt|log|ini)$
Against the text below, that you’ll paste in a new tab :
987.txt
abc\123.txt
abc\def\456.txt
abc\def\ghi\789.txt
abc\def\ghi\jkl\012.txt
abc\def\ghi\jkl\mno\pqr\stu\vwx\yz\999.txt
987.txt
abc\123.txt
abc\def\456.txt
abc\def\ghi\789.ini
abc\def\ghi\jkl\012.log
abc\def\ghi\jkl\mno\pqr\stu\vwx\yz\999.txt
LICENSE
abc\LICENSE
abc\def\LICENSE
abc\def\ghi\LICENSE
abc\def\ghi\jkl\LICENSE
abc\def\ghi\jkl\mno\pqr\stu\vwx\yz\LICENSE
You may also try, for example, the cases {0,3} or {0,} or even {4,}. Enjoy !
Best Regards,
guy038