I want to add a 0 in the front if the number is between 1- 9

A swapping-ground for Regular Expression syntax

I want to add a 0 in the front if the number is between 1- 9

Postby pka4916 » Wed Jul 02, 2014 5:20 pm

I have several folder with

1.jpg
2.jpg
3.jpg
ect.

I want to add a 0 in the front if the number is between 1- 9
is that possible ?

Thanks
pka4916
 
Posts: 1
Joined: Wed Jul 02, 2014 5:16 pm

Prefix single-digit names between 1-9

Postby truth » Thu Jul 03, 2014 1:50 am

To prefix single-digit filenames between 1-9, use 1Regex match/replace:
^([1-9])$
0\1
truth
 
Posts: 221
Joined: Tue Jun 25, 2013 3:39 am
Location: Earth, OrionArm, MilkyWay


Return to Regular Expressions