Given these filenames - What do I need to do to change just the numbers to 01 02 03 etc?
How do I add the rest of the filename without changing it?
Given these filenames - What do I need to do to change just the numbers to 01 02 03 etc?
How do I add the rest of the filename without changing it?
Old Name: *
New Name 0*
Type: Standard Rename
Several ways to read this question.
Taking a general case, where you might have gaps between the names of your songs, but you still wanted to add a zero to the original numbers:
1 my first song -> 01
3 another song -> 03
7 last song -> 07
Then in the Type: Regular Expressions mode that you had chosen,
Old Name: (\d).*
New Name: 0\1
The \d just captures one digit, it is equivalent to [0-9] or [[:digit:]]
All three would actually work in the parentheses! Meaning, old name could also be ([0-9]).* or ([[:digit:]]).*
Another way to read the question: how to just sequentially number these files, with a zero at the front?
There's Leo's solution.
But let's say you're not used to the wildcards in the standard replace and prefer regex mode, then you could go:
Old Name: .*
New Name: 0
And check the sequential numbering box from 1 by 1.
OR
Old Name: .*
New Name: (blank)
And check the sequential numbering box from 01 by 1.
Lots of options!
Thanks guys! Playful Leo's way was fine thanks!
That easy!
Yeah, Martin, I'm sure it was, but I love regex and had nothing to do, so I couldn't resist!
Sorry for the information overload!
Wishing you a fun weekend
No worries mate - Im sure I'll have to learn regexp one day!
Am wondering if there is a printed manual I could buy...
In my view the best print book available is Mastering Regular Expressions by Jeffrey Friedl.
There are a few gaps, but you wouldn't notice for a while...
Also you could print out Jan's tutorial on regular-expressions.info, and my own (in my sig). All great resources IMO.
I'll have a dig around in my files to see if there are some good free pdfs. If only I can get my hands on my file manager.
What I meant was the Dopus manual that you get in PDF - although feel free to post some regexp docs for me!
I had a look, the only one I have is a 49-page presentation I downloaded some weeks ago and forgot to read, so I don't know how good it is. Looks like an easy read, but not sure. Here's the link.
If you want a printed manual you can probably take the PDF file to a local photo/print shop and get them to print & bind it for you. Lots of them have that service.
We used to sell printed manuals a few years ago but the cost of shipping them to people (from Australia) and the low number of people interested in them meant that it didn't make sense. In most cases it's quicker and cheaper to take the PDF to a print shop.
(We also update the manual much more often these days.)
Ah ok no worries - might have to look into that Thanks Leo!