BRU Command Line Cannot INSERT to negative position

Post any Bulk Rename Utility support requirements here. Open to all registered users.

BRU Command Line Cannot INSERT to negative position

Postby Attila » Mon Feb 01, 2021 2:49 pm

Hi guys!

I love the tool, but when I try to use the command line utility to Insert a character to a negative position (counted from the end of filename), it does not work, it ignores the minus sign. Is there a special syntax required or is it a missing feature from the command line version?

Many thanks in advance!

Attila
Attila
 
Posts: 2
Joined: Mon Feb 01, 2021 1:18 pm

Re: BRU Command Line Cannot INSERT to negative position

Postby Luuk » Mon Feb 01, 2021 5:13 pm

Greetings Attila. The insert is prejudice against "-", so only accepting numbers as positive from the beginning, but there is many other ways, so this some examples to insert "xxx" before the last two characters...

brc64.exe /regexp:(.*)(..)$:\1xxx\2
brc64.exe /cutlastn:2 /suffix:xxx /pasteatend

If you like to change the regexp, its the (..)$ that conducts "last two characters".
Luuk
 
Posts: 690
Joined: Fri Feb 21, 2020 10:58 pm

Re: BRU Command Line Cannot INSERT to negative position

Postby Attila » Mon Feb 01, 2021 6:51 pm

Thanks Luuk for your quick reply! Great workaround, I will test it tomorrow!
Attila
 
Posts: 2
Joined: Mon Feb 01, 2021 1:18 pm


Return to BRU Support