multi-rename tool change names that has one digits to two

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
david34
Junior Member
Junior Member
Posts: 3
Joined: 2017-10-25, 08:36 UTC

multi-rename tool change names that has one digits to two

Post by *david34 »

hi

i want to change multi directories names, every one digits to two, for example every directory that has a digit 1 will be 01, and every 2 will be 02.

thanks
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

MUT: add leading zero / pad with 0's / all number two digits

Post by *Stefan2 »

- do you want to rename sub folders too?
- are that the only digits in the whole name?
- how are the digit surrounded? By space?
- provide real examples?


Try

FROM:
zzz 1 zzet 2 knn 333 xyz 400
TO:
zzz 01 zzet 02 knn 030303 xyz 040000

Search: (\d)
Replace: 0$1
[x]RegEx



FROM:
zzz 1 zzet 2 knn 333 xyz 400
TO:
zzz 01 zzet 02 knn 333 xyz 400

Search: ~(\d)~
Replace: ~0$1~
[x]RegEx

The '~' sign indicates here a space just for explanation, use a real space instead yourself if need.




 
Post Reply