by trm2 » Sun May 24, 2020 4:52 am
It is found in Section #14: JavaScript - you click on the box and it brings up a data entry form where you can enter or in this case, copy and paste the code in.
If you have not registered the program (cost is about $100 - low cost for what you get), then you can only use the Test facility. This simply checks the syntax to make sure it will run
without problems.
If you have the registered version (aka called the commercial version) then it will run the code. You really don't have the real power of BRU without it - there is however, a learning curve
for JavaScript. In Volume II, there will be numerous examples where you can plug in the code and see it work - and after a while, you may pick it up in bits and pieces as I have.
Registering the program supports further development not just for the paid version but for the freeware versions as well. I believe even now they are working on a new version.
So if you can, show your support and save your pennies and register for the paid version in the future. The Admin is always willing to help as well as therube, RegexNinja and perhaps others
to develop a JavaScript solution to a problem.
It sounds like you do not have the paid version, so you would be better off using the RegEx (Regular Expression) code that RegexNinja provided. Remember though it requires multiple runs to get the desired outcome.
If you are totally new to the program, then I suggest downloading my book, Bulk Rename Utility Operations Manual Volume I - look for it as the first entry to the How-To section of this forum. I don't have the link at hand at the
moment. This book explains every function of BRU in detail. There is even a RegEx manual found in the appendix. Volume II, when released will have a companion manual to this in the appendix as well.