How can I specify a reverse search in the "Search for" field?
That is, I'd like to find all files that do NOT begin with a P.
Using Regex in the Find Files box
Moderators: white, Hacker, petermad, Stefan2
Re: Using Regex in the Find Files box
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Using Regex in the Find Files box
Wonderful, Dalai, thanks. It worked like a charm.
Can you explain what the ^ and the [ ] indicate?
Can you explain what the ^ and the [ ] indicate?
Re: Using Regex in the Find Files box
You could also just use this in the "Search for:" field (without RegEx):
Meaning: look for all files (*), but not (|), files that start with a P (P*)
^[^P] means: in the start (^), look for a character ([]), which is not P (^P)
Code: Select all
*|P*
^[^P] means: in the start (^), look for a character ([]), which is not P (^P)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Using Regex in the Find Files box
Thanks, Peter, that's even better. I was hoping to specify a particular type of extension, and this enables me to do so.
So in the future, I can use a vertical bar to specify "not"?
So in the future, I can use a vertical bar to specify "not"?
Re: Using Regex in the Find Files box
Yes. This is also mentioned in the TC help, in the topic "Find files".
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror