Hi,
In 9.21a and 9.22a (64-bit), I'm having trouble with RegEx in the Multi-Rename tool... trying to append or prepend a string to the filename doesn't seem to be working like it used to...
for a file named 12345678.jpg
Search for: ($1)
Replace with: AAAA - $1 - BBBB
Extension UNChecked
should result in
AAAA - 12345678 - BBBB.jpg
but instead gets
AAAA - 12345678 - BBBBAAAA - - BBBB.jpg
I'll try to upload a screenshot.
Thanks
Multi-Rename RegEx problems?
Moderators: white, Hacker, petermad, Stefan2
Re: Multi-Rename RegEx problems?
bobbozzo wrote: ↑2019-08-13, 05:36 UTC Hi,
In 9.21a and 9.22a (64-bit), I'm having trouble with RegEx in the Multi-Rename tool... trying to append or prepend a string to the filename doesn't seem to be working like it used to...
for a file named 12345678.jpg
Search for: ($1)
Replace with: AAAA - $1 - BBBB
Extension UNChecked
should result in
AAAA - 12345678 - BBBB.jpg
but instead gets
AAAA - 12345678 - BBBBAAAA - - BBBB.jpg
I'll try to upload a screenshot.
Thanks
>>> Search for: ($1)
That $1 is a regex-marker for the replacement box
for to reuse what was captured in the Search by the first capturing group (...)
So adjust your search and tell the regex engine what you are looking for between your capturing parenthesis (...)
Your replacement looks fine, however.
Need any more help? ...
Re: Multi-Rename RegEx problems?
Uh, to enclose a filename (i.e. to prepend and append something) RegEx is not needed at all. Just use the Rename mask box and add your additional strings there, before the [N] and after it.
However, I can confirm the issue itself, even in TC 8.52a. I don't know why it occurs, but it can be solved by ticking [X] Subst checkbox.
Regards
Dalai
However, I can confirm the issue itself, even in TC 8.52a. I don't know why it occurs, but it can be solved by ticking [X] Subst checkbox.
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Multi-Rename RegEx problems?
Dalai wrote:However, I can confirm the issue itself, even in TC 8.52a. I don't know why it occurs, but it can be solved by ticking [X] Subst checkbox.
Shouldn't this topic stay under bug reports, because even with the correct search mask (.*) the resulting name looks quite strange if 1x is unchecked?bobbozzo wrote: Search for: ($1)
Replace with: AAAA - $1 - BBBB
...
should result in
AAAA - 12345678 - BBBB.jpg
but instead gets
AAAA - 12345678 - BBBBAAAA - - BBBB.jpg
Regards
Holger
Make our planet great again