[8.0b3-32] MRT, search for *something (no RegEx!)

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
white
Power Member
Power Member
Posts: 5789
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[8.0b3-32] MRT, search for *something (no RegEx!)

Post by *white »

In the Multi-rename tool if the Search string (no RegEx!) begins with "*", nothing is found. This is also the case in (much) older versions of Total Commander. I don't know if I am missing something, but it doesn't seem right.

Example

Open the Multi-rename tool with the following files:

Code: Select all

10filename a
1filename b
2filename c
3filename d
filename e
Objective: remove "<optional text>file" from file name.

Search for: *file
Replace with: <Clear>

Nothing is renamed.



The following does work.

Search for: ?*file
Replace with: <Clear>

All files except "filename e" are renamed (which is correct).
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed - but even in TC 7.65a it works like that too, so I don't understand your. "(much) older".

I would consider this to be a bug since the help file says:
Both fields support the placeholders (wildcards) * and ?. A * stands for any number of characters, a ? for exactly one character.
So wildcard * should be recognized by itself.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 5789
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

petermad wrote:Confirmed - but even in TC 7.65a it works like that too, so I don't understand your. "(much) older".
I meant it has worked that way for a long time. I tested for instance TC 5.50 which behaves the same way.
petermad wrote: So wildcard * should be recognized by itself.
It does, but not when it is the first character in the search string.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

* means all characters until the end. Therefore it makes no sense with just a *, because it would replace the entire name. All files would get the same name, which wouldn't work. But * followed by some characters would make sense - I will check whether I could support that.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should work now in beta 4, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5789
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Tested OK using TC 8.0b4-32.
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed fixed in TC 8.0b4 x64 and 32bit :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply