Show the cmd regex expression that advanced renamer uses?

Advanced Renamer forum
#1 : 02/04-20 14:19
Blabbo
Blabbo
Posts: 2
Hi,
It would be immensely useful to be able to see how the replace or add or remove etc. command is expressed in a command line command + regular expression.

I use advanced renamer for very simple tasks like inserting text at index 0 of a file name when I would rather to use the command line. But its an excessive level of googling to find out how, when advanced renamer could just tell me. Is there a way to show this?

Thanks,
Blabbo


02/04-20 14:19
#2 : 02/04-20 18:39
David Lee
David Lee
Posts: 1125
Do you really mean "Command Line" or Advanced Renamer's "Script Method".

The script method assumes a knowledge of JavaScript and Regular Expressions. Whilst confusing at first it isn't a terribly steep learning curve if you employ some intelligent Googling. I have found hits at www.w3schools.com particularly helpful.

If you browse previous threads on this forum you will find a lot of examples of scripting and the use of regular expressions.


02/04-20 18:39
#3 : 03/04-20 18:41
Blabbo
Blabbo
Posts: 2
Reply to #2:
Hi,
Thanks, i'll check it out.

Ideally, I would like to know the equivalent command to be put into the command line to achieve the same result by writing into the command line.

But from your response I gather that advanced renamer doesn't work by writing scripts into the command line in the background, instead it is a standalone javascript program.

If this is the case, I wonder if there is way just to show the equivalent regular expression of the text I am asking. For example; how to say ' index 0 of filename' It would be a really fast way to learn regular expressions.

Thanks,
Seb


03/04-20 18:41
#4 : 04/04-20 00:27
David Lee
David Lee
Posts: 1125
Reply to #3:
Advanced Renamer's "Command line automation" facility allows you to run previously saved method lists from a batch file - so you still have to set up the renaming algorithms in the main program.

It's not obvious what you mean by "index 0 of filename" - can you try to be a bit more explicit?


04/04-20 00:27