How can I find files (Match Case) in current directory?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
vascaraus
Junior Member
Junior Member
Posts: 17
Joined: 2022-03-08, 17:28 UTC

How can I find files (Match Case) in current directory?

Post by *vascaraus »

I have these files in a folder with 124 different files.

Code: Select all

13d.html
14,.html
14d.html
15.html
15d.html
I try many search combination, such as:

Code: Select all

*13*;*13d*;*14*;*14d*;*15*;*15d;
or regex:

Code: Select all

13|13d|14|14d|15|15d


Image: https://snipboard.io/scNpI3.jpg

but none of them give me the exact result. if I search with regex, it finds about 30 more files. And I strictly only want to find the 6 files.
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: How can I find

Post by *hi5 »

What is wrong with just using

Code: Select all

13d.html;14,.html;14d.html;15.html;15d.html
(no regex) ?
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
white
Power Member
Power Member
Posts: 5807
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How can I find files (Match Case) in current directory?

Post by *white »

If you want case sensitive search for filenames, use RegEx with modifier (?-i) or use the Plugins tab and use a case sensitive operator.

An example using RegEx:

Code: Select all

(?-i)^(13d|14,|14d|15|15d)\.html$
User avatar
tuska
Power Member
Power Member
Posts: 4052
Joined: 2007-05-21, 12:17 UTC

Re: How can I find files (Match Case) in current directory?

Post by *tuska »

Code: Select all

ed:files:exact:<13.html|13d.html|14,.html|14d.html|15.html|15d.html>
✅ 'Everything'


Search queries: Total Commander <=> 'Everything'
vascaraus
Junior Member
Junior Member
Posts: 17
Joined: 2022-03-08, 17:28 UTC

Re: How can I find files (Match Case) in current directory?

Post by *vascaraus »

thanks. By the way:

This is also a good answer. I find it now the solution with regex:

Code: Select all

(?-i)^\b(13d|14,|14d|15|15d)\b.*?$
OR

Code: Select all

^\b(13d|14,|14d|15|15d)\b.*?$
User avatar
white
Power Member
Power Member
Posts: 5807
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How can I find files (Match Case) in current directory?

Post by *white »

vascaraus wrote: 2023-07-18, 04:16 UTC This is also a good answer. I find it now the solution with regex:

Code: Select all

(?-i)^\b(13d|14,|14d|15|15d)\b.*?$
If that is what you want. It does something different. By the way, this should do the same as your expression:

Code: Select all

(?-i)^(13d|14,|14d|15|15d)\b
vascaraus wrote: 2023-07-18, 04:16 UTC OR

Code: Select all

^\b(13d|14,|14d|15|15d)\b.*?$
This is a case insensitive search. The subject of your thread says "find files (Match Case)", so I thought you wanted a case sensitive earch.
Post Reply