CLI Regexp to exclude .bat-file

Advanced Renamer forum
#1 : 31/07-22 11:46
Jeroen
Jeroen
Posts: 1
I've created a small batch-file to rename files in the same directory.
Only, the .bat itself gets renamed too.

I tried
-r /^(?!.*bat).*/
but that expression isn't valid.

What expression can be used to excluded .bat ?


31/07-22 11:46
#2 : 02/08-22 17:28
David Lee
David Lee
Posts: 1125
-r \.(?!bat$)


02/08-22 17:28