CLI Regexp to exclude .bat-file
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 ?
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 ?
-r \.(?!bat$)