Select group bug?

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
kwanbis
Junior Member
Junior Member
Posts: 68
Joined: 2006-11-06, 21:30 UTC

Select group bug?

Post by *kwanbis »

I have this four files:

Day 1 Jason Capital's STATUS.mp4
Day 10 Jason Capital's STATUS.mp4
Day 11 Jason Capital's STATUS.mp4
Day 2 Jason Capital's STATUS.mp4

I want to select day 1 and 2 only so I use "Day ? *.*", but it selects all.

Day 10 Jason Capital's STATUS.mp4 and Day 11 Jason Capital's STATUS.mp4 clearly do not match the string, as they are actually "day ?? *.*".

Or I'm missing something?
User avatar
Dalai
Power Member
Power Member
Posts: 10022
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

* matches any number of characters, so despite ? doesn't select the two-digit files * does.

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
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

 
But you can use regex for selecting:

FROM:
Day 1 Jason Capital's STATUS.mp4
Day 10 Jason Capital's STATUS.mp4
Day 11 Jason Capital's STATUS.mp4
Day 2 Jason Capital's STATUS.mp4

Select:
Day 1 Jason Capital's STATUS.mp4
Day 2 Jason Capital's STATUS.mp4

USE e.g.:
<Day \d\D

or more common:
<\w+ \d\D

- - -


[face=timesnewroman]BTW:
to sort like
Day 1 Jason Capital's STATUS.mp4
Day 2 Jason Capital's STATUS.mp4
Day 10 Jason Capital's STATUS.mp4
Day 11 Jason Capital's STATUS.mp4

USE:
Preferences > Display > Natural sorting...[/face]


 
User avatar
kwanbis
Junior Member
Junior Member
Posts: 68
Joined: 2006-11-06, 21:30 UTC

Post by *kwanbis »

I don't understand what you mean. In windows, this "day ? *.*" reads:

Select all files that start with the string day, then have a space, then any one character then another space, and then whatever dot whatever.
User avatar
Dalai
Power Member
Power Member
Posts: 10022
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Ah, it's different than I thought. TC separates words (file types in this case) on spaces, so it selects the file "day", any file with one character (?), and any file (*.*). That's why all files are selected.

Example: Have some files of mixed types in any directory and type in the selection dialog "*.cmd *.au3" (without the quotes). TC selects all au3 files and all cmd files.

So, to solve your problem, you have to use quotes: "day ? *.*" (including the quotes!). This is also true for the CMD, btw.

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
User avatar
kwanbis
Junior Member
Junior Member
Posts: 68
Joined: 2006-11-06, 21:30 UTC

Post by *kwanbis »

I see what you mean now.. thanks!
Post Reply