How to find only a specific name on the disk?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
makinero
Senior Member
Senior Member
Posts: 268
Joined: 2013-10-26, 10:05 UTC

How to find only a specific name on the disk?

Post by *makinero »

How to find only a specific name on the disk.
The name is unique because it contains only a "dot"
Filename:

Code: Select all

.

Code: Select all

..ext
I tested a lot of different regular expressions, but none of them work correctly.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: How to find only a specific name on the disk?

Post by *HolgerK »

Code: Select all

^\.\..*
Make our planet great again
User avatar
makinero
Senior Member
Senior Member
Posts: 268
Joined: 2013-10-26, 10:05 UTC

Re: How to find only a specific name on the disk?

Post by *makinero »

HolgerK wrote: 2018-12-09, 16:22 UTC

Code: Select all

^\.\..*
Incorrect regex!!, I want to find only "."

..ext
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: How to find only a specific name on the disk?

Post by *HolgerK »

Correct regex syntax!
Incorrect problem description!
A filename with dot only and without extension is not a valid filename!

Maybe one of your tools you used to create such a filename is also able to find this file?
Make our planet great again
User avatar
makinero
Senior Member
Senior Member
Posts: 268
Joined: 2013-10-26, 10:05 UTC

Re: How to find only a specific name on the disk?

Post by *makinero »

Your Regex just does not match what I'm looking for.
File name with dot (correct)
The file contains the extension (correctly)
I already have the correct regex and everything works.
Example:

..csv
..mp3
..jpg

Many people and you suggested incorrect regex on another forum, but someone finally gave the correct regex :)
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: How to find only a specific name on the disk?

Post by *HolgerK »

Yes, your are the one and only...
BTW: "..csv" will also find "a.csv", "b.csv", "c.csv",..., "zzcsv" and so on.

*plonk*
Make our planet great again
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to find only a specific name on the disk?

Post by *Horst.Epp »

makinero wrote: 2018-12-09, 17:50 UTC Your Regex just does not match what I'm looking for.
File name with dot (correct)
The file contains the extension (correctly)
I already have the correct regex and everything works.
Example:

..csv
..mp3
..jpg

Many people and you suggested incorrect regex on another forum, but someone finally gave the correct regex :)
One of your funny postings again.
If you already have the correct regex why do you spam this forum.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
makinero
Senior Member
Senior Member
Posts: 268
Joined: 2013-10-26, 10:05 UTC

Re: How to find only a specific name on the disk?

Post by *makinero »

@Horst.Epp - I just asked a question on several forums at the same time. And one of the forums I got was wanted. What's funny about that?
Solved.

@HolgerK - You regex wrong ^\.\..*
Show me the screenshoot that shows the expected file names (dot). Of course, your regex will not show only dotted names.
Writing the correct expression causes many problems with understanding that I am looking for a name in the form of only a dot, which of course is possible in Windows.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to find only a specific name on the disk?

Post by *Horst.Epp »

makinero wrote: 2018-12-09, 18:35 UTC @Horst.Epp - I just asked a question on several forums at the same time. And one of the forums I got was wanted. What's funny about that?
Solved.

@HolgerK - You regex wrong ^\.\..*
Show me the screenshoot that shows the expected file names (dot). Of course, your regex will not show only dotted names.
Writing the correct expression causes many problems with understanding that I am looking for a name in the form of only a dot, which of course is possible in Windows.
I know yor other postings "Debugger" :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: How to find only a specific name on the disk?

Post by *HolgerK »

@HolgerK - You regex wrong ^\.\..*
Show me the screenshoot that shows the expected file names (dot). Of course, your regex will not show only dotted names.
Writing the correct expression causes many problems with understanding that I am looking for a name in the form of only a dot, which of course is possible in Windows.
The found names have only a single dot but the full filename has a extension like csv, jpg, mp3:
http://holgerk.drivehq.com//TC//TCSearchWithRegEx.png
and out... this is just ridiculous...

We are not here to provide you lazy guy with every solution to any problem without a clear description from you what's going wrong in your case.
Feel free to refine the solution yourself to match all conditions on your system. e.g.:

Code: Select all

^\.\.\w{3}$
But this may imply that you have to learn the syntax and possibilities of regex by your own.
Make our planet great again
User avatar
makinero
Senior Member
Senior Member
Posts: 268
Joined: 2013-10-26, 10:05 UTC

Re: How to find only a specific name on the disk?

Post by *makinero »

Code: Select all

^\.\.\w{3}$
Works according to the expected result.
Post Reply