How to find some file, this doesn't work.

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 to find some file, this doesn't work.

Post by *vascaraus »

hello. I need to find this file, which exist in my folder:

Revista Magazin istoric - Nr. 11 (164) 1980.pdf

This is how I make the find:

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

why can't it find my file?
User avatar
Dalai
Power Member
Power Member
Posts: 9968
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: How to find some file, this doesn't work.

Post by *Dalai »

If the search term contains a dot, TC will only search for exact matches. Since your file is name "something Nr. 11 something.pdf" and not just "something Nr. 11 something", it won't find it. You need to modify your search term: add the extension, or replace any dots with a question mark or an asterisk to make TC not just look for exact matches.

BTW, this behavior is mentioned in TC's help (press F1 while in the search window).

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
RedTiF
Junior Member
Junior Member
Posts: 19
Joined: 2009-09-10, 11:03 UTC

Re: How to find some file, this doesn't work.

Post by *RedTiF »

"Find text" is also ticked, you are also searching for blank text in the file. Is that what you want?

Rgds RedTiF
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to find some file, this doesn't work.

Post by *Stefan2 »

RedTiF wrote: 2022-03-08, 18:50 UTC "Find text" is also ticked, you are also searching for blank text in the file. Is that what you want?
ticked "Find text" with empty box will not searching for blank text in the file. Just check it out yourself.


"replace any dots" will not help here, only adding the extension (or just an asterisk *) will find the file.
Or searching for less parts like one or two word, a number or the hyphen will also find the file.
The space char separates the whole search term (because it is here unquoted) into different search masks.



 
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6979
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to find some file, this doesn't work.

Post by *Horst.Epp »

This is a very easy task enabling the Everything option in the TC search.
Then something Nr. 11 something and any shorter version of it is found
without complicated syntax and rules.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
vascaraus
Junior Member
Junior Member
Posts: 17
Joined: 2022-03-08, 17:28 UTC

Re: How to find some file, this doesn't work.

Post by *vascaraus »

Horst.Epp wrote: 2022-03-08, 19:51 UTC This is a very easy task enabling the Everything option in the TC search.
Then something Nr. 11 something and any shorter version of it is found
without complicated syntax and rules.
thanks
vascaraus
Junior Member
Junior Member
Posts: 17
Joined: 2022-03-08, 17:28 UTC

Re: How to find some file, this doesn't work.

Post by *vascaraus »

ok, there is a good chance to find that file with .dot, if I choose to find with RegEx. I put \ in front of all .dot And it works, super !

THE BIG PROBLEM is that I need to find multiple files. Each file can be find separately, ok. But what if I have 10 files?

I put * or *: between name of the files, but is not working...
User avatar
white
Power Member
Power Member
Posts: 5823
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How to find some file, this doesn't work.

Post by *white »

2vascaraus, I'm not sure what you want, but if you want to search for multiple strings using RegEx use the pipe "|" symbol. For example:

Code: Select all

 \.dot|\.txt|\.cal
vascaraus
Junior Member
Junior Member
Posts: 17
Joined: 2022-03-08, 17:28 UTC

Re: How to find some file, this doesn't work.

Post by *vascaraus »

For example I have this 3 files that have . and (). So, I can use RegEx for search. I can put \. or \( or \) in front of any element that is use by regex.

Revista Magazin istoric - Nr. 11 (164) 1980.pdf
Revista Magazin istoric - Nr. 26 (4) 1990.pdf
Revista Magazin istoric - Nr. 198 (32) 1991.pdf

Please tell me for this example how to find all 3 files with TCM (using RegEx or other way).
vascaraus
Junior Member
Junior Member
Posts: 17
Joined: 2022-03-08, 17:28 UTC

Re: How to find some file, this doesn't work.

Post by *vascaraus »

I think I find the solution. I must put "|" between files, like this:

Revista Magazin istoric - Nr\. 11 \(164\) 1980\.pdf|Revista Magazin istoric - Nr\. 26 \(4\) 1990\.pdf|Revista Magazin istoric - Nr\. 198 \(32\) 1991\.pdf
User avatar
white
Power Member
Power Member
Posts: 5823
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How to find some file, this doesn't work.

Post by *white »

2vascaraus
Yes, that is the correct syntax for RegEx if you want to search using full name.

It does however searches for a match anywhere in the file name. So it would also find for example:
My Revista Magazin istoric - Nr. 11 (164) 1980.pdf
Revista Magazin istoric - Nr. 198 (32) 1991.pdf (1)
Revista Magazin istoric - Nr. 26 (4) 1990.pdf (2)

To match full file name using RegEx use:

Code: Select all

^(Revista Magazin istoric - Nr\. 11 \(164\) 1980\.pdf|Revista Magazin istoric - Nr\. 26 \(4\) 1990\.pdf|Revista Magazin istoric - Nr\. 198 \(32\) 1991\.pdf)$
vascaraus
Junior Member
Junior Member
Posts: 17
Joined: 2022-03-08, 17:28 UTC

Re: How to find some file, this doesn't work.

Post by *vascaraus »

So I have tu put

Code: Select all

^(
at the beginning and

Code: Select all

)$
at the end of search

Code: Select all

^(Revista Magazin istoric - Nr\. 11 \(164\) 1980\.pdf|Revista Magazin istoric - Nr\. 26 \(4\) 1990\.pdf|Revista Magazin istoric - Nr\. 198 \(32\) 1991\.pdf)$
Thanks. I test it, and works also simple. Just put "|" between files, and for all ".dot" and "()" brackets just put "\" in front of it

Code: Select all

Revista Magazin istoric - Nr\. 11 \(164\) 1980\.pdf|Revista Magazin istoric - Nr\. 26 \(4\) 1990\.pdf|Revista Magazin istoric - Nr\. 198 \(32\) 1991\.pdf
User avatar
white
Power Member
Power Member
Posts: 5823
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How to find some file, this doesn't work.

Post by *white »

vascaraus wrote: 2022-03-10, 11:14 UTC So I have tu put

Code: Select all

^(
at the beginning and

Code: Select all

)$
at the end of search

Code: Select all

^(Revista Magazin istoric - Nr\. 11 \(164\) 1980\.pdf|Revista Magazin istoric - Nr\. 26 \(4\) 1990\.pdf|Revista Magazin istoric - Nr\. 198 \(32\) 1991\.pdf)$
Yes, if you want to make absolutely sure that no other files are found.
In RegEx ^ means the beginning, $ means the end. So in order to match an entire file name you would use:

Code: Select all

^expression$
to match an entire file name with multiple expressions:

Code: Select all

^expression1$|^expression2$|^expression3$
or group the expressions:

Code: Select all

^(expression1|expression2|expression3)$
User avatar
white
Power Member
Power Member
Posts: 5823
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: How to find some file, this doesn't work.

Post by *white »

2vascaraus
Of course it's simpler if you don't use RegEx.
When searching without RegEx the whole filename is matched when there is a dot in your expression. So normally you can just add quotes:

Code: Select all

"Revista Magazin istoric - Nr. 11 (164) 1980.pdf" "Revista Magazin istoric - Nr. 198 (32) 1991.pdf" "Revista Magazin istoric - Nr. 26 (4) 1990.pdf"
Or without spaces in between:

Code: Select all

"Revista Magazin istoric - Nr. 11 (164) 1980.pdf""Revista Magazin istoric - Nr. 198 (32) 1991.pdf""Revista Magazin istoric - Nr. 26 (4) 1990.pdf"
In the rare case that your filename doesn't have a filename extension and has no dots in the name, you must add a dot at the end:

Code: Select all

"File without ext."
Post Reply