Page 1 of 1

BRU Command Line Cannot INSERT to negative position

PostPosted: Mon Feb 01, 2021 2:49 pm
by Attila
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

Re: BRU Command Line Cannot INSERT to negative position

PostPosted: Mon Feb 01, 2021 5:13 pm
by Luuk
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".

Re: BRU Command Line Cannot INSERT to negative position

PostPosted: Mon Feb 01, 2021 6:51 pm
by Attila
Thanks Luuk for your quick reply! Great workaround, I will test it tomorrow!