Page 1 of 1
What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 16 Feb 2021 22:29
by Jerry
Hi,
I am trying to figure out the Quick Search equivalent expression of doing a Find Files regular expression pattern search in the entire file path. For example, In Find Files
Name & Location panel, I can select the Regexp Mode, check on Path, and enter the following as the Name pattern:
I will then get a list of just those files named "AltRip" (which in this case are subfolders) that appear under parent folders that end in a ")".
The question is:
How can I do this exact same search with a Quick Search expression?
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 10:25
by admin
Use the
> prefix to mark the search pattern as RegExp, eg:
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 10:50
by highend
The thing is, his example doesn't work (in a quicksearch). Does quicksearch not take path components into account?
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 10:58
by admin
Can you explain that \)\\AltRip$ pattern to me, please? (I'm no RegExp man)
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:00
by highend
It will match a directory name ending with a ")" and inside of it a folder (or a file name without an extension) named "AltRip"
Like:
<some path>\hello (world)\AltRip
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:13
by admin
But it does not work here, not even in Find Files.

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:16
by highend
\)\\AltRip$
Does work in find files
2.png
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:27
by admin
What is my mistake?
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:32
by highend
You didn't enable the Path checkbox
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:44
by admin
OK, facepalm.
I think this explains why it does not work in Quick Search: it has no "Path" checkbox or switch AFAIK.
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:46
by highend
It should get one^^
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:51
by admin
OK.
While testing this I found that the "Find Files" (small toolbar) mode in Quick Search does not seem to work??? It does not seem to take the Find Files settings into account.

Can you confirm?
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 11:55
by highend
At least it doesn't respect the Path checkbox setting. Didn't try any different switches in the main find files gui
Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 12:55
by admin
Wow, the feature was destroyed since v21.10.0030 - 2020-10-02.

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths
Posted: 17 Feb 2021 15:20
by Jerry
Just saw and tried the /P switch you added for this in v21.50.0124. Works great. Thanks!