What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post 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:

Code: Select all

\)\\AltRip$
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?
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by admin »

Use the > prefix to mark the search pattern as RegExp, eg:

Code: Select all

>.gif$

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by highend »

The thing is, his example doesn't work (in a quicksearch). Does quicksearch not take path components into account?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by admin »

Can you explain that \)\\AltRip$ pattern to me, please? (I'm no RegExp man)

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post 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
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by admin »

But it does not work here, not even in Find Files. :?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by highend »

\)\\AltRip$
Does work in find files
2.png
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by admin »

What is my mistake?
To see the attached files, you need to log into the forum.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by highend »

You didn't enable the Path checkbox
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by admin »

OK, facepalm. :oops:

I think this explains why it does not work in Quick Search: it has no "Path" checkbox or switch AFAIK.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by highend »

It should get one^^
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post 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. :eh: Can you confirm?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by highend »

At least it doesn't respect the Path checkbox setting. Didn't try any different switches in the main find files gui
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by admin »

Wow, the feature was destroyed since v21.10.0030 - 2020-10-02. :shock:

Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: What is the Quick Search equivalent for Finding a Regexp Pattern in File Paths

Post by Jerry »

Just saw and tried the /P switch you added for this in v21.50.0124. Works great. Thanks!
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

Post Reply