Page 1 of 1

How to remove zeros in start of each file name

PostPosted: Thu Jan 19, 2017 11:03 am
by aftabnabi
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

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

PostPosted: Thu Jan 19, 2017 11:36 am
by Emerkamp
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.

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

PostPosted: Thu Jan 19, 2017 12:56 pm
by aftabnabi
Thanks Emerkamp
worked like a charm!