Rename files starting with space

Advanced Renamer forum
#1 : 24/05-22 10:42
Arjan
Arjan
Posts: 1
Hi,

I would like to rename all the files starting with a space into files starting with an underscore (leaving all other spaces).
For example:
" 1test file.txt" >> "_1test file.txt"

Is this possible?

Thanks in advance!


24/05-22 10:42
#2 : 24/05-22 18:59
David Lee
David Lee
Posts: 961
Replace "^ " (ie "^" plus space)
with "_"
use regular expressions

"^" signifies start of string so only a space at the beginning of a filename will be replaced.


24/05-22 18:59