Regex is allowed in the "Search For" and "File Names match" fields in grepWin. I would also like to use regex to specify the list of paths in the "Search in" field. Is this supported, and if so, what is the proper syntax?
Currently my "Search In" field contains something like Path1\|Path2\|Path3\
I would like to have something more like Path1\.*\source\|Path2\.*\TestData\
so that I could get all files in all folders named "source" in various subfolders of Path1 and folders named "TestData" in subfolders of Path2 without searching every folder in Path1 and Path2.
The naïve approach would be to explicitly specify all possible paths containing "source" Path1\package1\source\|Path1\package2\source
and so forth so that I get all of those "source" directories downstream of Path1 and nothing else but there are many and the list is ever-growing.
Also, searching all of Path1 is clearly functional but it could be made significantly faster by reducing the volume of files processed.
I've played around with various attempts to deduce what the syntax might be if regex is supported in this field but I have yet to see any evidence that it's working. The use of '|' as the default separator suggests parsing is happening but regex is either unsupported or supported in some non-standard way so that '|' can behave like it does.