QUOTE (ManoMusic @ Apr 29 2012, 20:52)
Hey guys, I am new to this scripting stuff but I am doing my reading and trying to figure it out.
OK, what I would like to do is add a 0 to numerals 1-9 in the track #.
So, if we have 1,2,3,4,5,6,7,8,9,10,11,12..etc for track numbers.
It will modify them to
Any suggestions guys?
Here's two way of doing the same job.Action #1:Action type: Format valueField: TRACKFormatstring: $num(%track%,2)
Enter in where it says 2
how many leading zeros you want.Action #2:Action type: Replace with regular expressionField: TRACKRegular expression: ^(\d)$Replace matches with: 0$1[ ] case-sensitive comparison
This uses a regular expression in the TRACK field.^
MATCHES the start of the string(
MATCHES any digit 0-9)
MATCHES end of string.
The replace is:0
Returns the single no. that was captured