How to remove zeros in start of each file name

Post any Bulk Rename Utility support requirements here. Open to all registered users.

How to remove zeros in start of each file name

Postby aftabnabi » Thu Jan 19, 2017 11:03 am

I would like to remove zeros in start of each file name through BRU.

I have following files:

001.mp3
011.mp3
010.mp3
100.mp3
101.mp3
141.mp3

I want to get following output:

1.mp3
11.mp3
10.mp3
100.mp3
101.mp3
141.mp3

Please help solve above situation with BRU.

Thanks
aftabnabi
 
Posts: 9
Joined: Thu Jan 19, 2017 3:13 am

Re: How to remove zeros in start of each file name

Postby Emerkamp » Thu Jan 19, 2017 11:36 am

Hello:

Try:

Regex (1)

Match:
(0*)(.*)

Replace:
\2

I haven't tested this myself, but it should work.
This will take any amount of zero's off the front of the name.
Emerkamp
 
Posts: 111
Joined: Sat Aug 23, 2014 2:35 pm

Re: How to remove zeros in start of each file name

Postby aftabnabi » Thu Jan 19, 2017 12:56 pm

Thanks Emerkamp
worked like a charm!
aftabnabi
 
Posts: 9
Joined: Thu Jan 19, 2017 3:13 am


Return to BRU Support