Parameter \F does not work starting with TC 10.50b3.Help wrote:Regular expressions --> Subexpressions for search+replace
In "Replace by", use parameters \U, \L, \F, \n to convert from this point on to uppercase, lowercase, first char in word uppercase, and back to unchanged, e.g.
Search for: (.*) - (.*)\.mp3
Replace by: \U$2 - \L$1.mp3
[TC10.50b3/TC11.x] Error with parameters for name register in MRT
Moderators: Hacker, petermad, Stefan2, white
[TC10.50b3/TC11.x] Error with parameters for name register in MRT
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC10.50b3/TC11.x] Error with parameters for name register in MRT
Confirmed, it's a bug of the used regular expression library, which I updated with TC 10.50b3.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC10.50b3/TC11.x] Error with parameters for name register in MRT
It seems that the updated version of the library does not support\F. According to the documentation here:
https://wiki.freepascal.org/Regexpr
it only supports these:
\l - First char to lower
\L - All chars to lower
\u - First char to upper
\U - All chars to upper
In the old library, \U, \L, \F, \n were parameters I added myself:
06.08.17 Added: Multi-rename tool, regular expressions: In "Replace with", support parameters \U, \L, \F, \n to convert from this point on to uppercase, lowercase, first char in word uppercase, and back to unchanged (32/64)
I will check whether I can somehow re-add \F and \n, but it could be difficult now that the library supports the above mentioned parameters.
https://wiki.freepascal.org/Regexpr
it only supports these:
\l - First char to lower
\L - All chars to lower
\u - First char to upper
\U - All chars to upper
In the old library, \U, \L, \F, \n were parameters I added myself:
06.08.17 Added: Multi-rename tool, regular expressions: In "Replace with", support parameters \U, \L, \F, \n to convert from this point on to uppercase, lowercase, first char in word uppercase, and back to unchanged (32/64)
I will check whether I can somehow re-add \F and \n, but it could be difficult now that the library supports the above mentioned parameters.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC10.50b3/TC11.x] Error with parameters for name register in MRT
Fixed in TC 11.00b5. Thanks!History.txt wrote:31.05.23 Fixed: Multi-rename tool, regular expressions: The parameter \F in the "Replace with" field didn't work any more.
Unfortunately, the fix did not affect the situation with the Russian file names in the TCx32: the \U ,\L and \F parameters still do not work (starting from 10.50b3x32). In TCx64, everything is fine.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC10.50b3/TC11.x] Error with parameters for name register in MRT
Thanks for confirming the fix! I added the \F parameter myself.
I can confirm that only English characters work - I will add Unicode support.
I can confirm that only English characters work - I will add Unicode support.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC10.50b3/TC11.x] Error with parameters for name register in MRT
Good!ghisler(Author) wrote:I will add Unicode support.
Re: [TC10.50b3/TC11.x] Error with parameters for name register in MRT
Confirmed fixed in TC 11.00b6. Thanks!History.txt wrote:01.06.23 Fixed: Multi-rename tool, regular expressions: The parameters \L, \U and \F in the "Replace with" field didn't support accented characters (32)