I've been wrestling with this for several hours now, to no avail. I have tagged all my classical music so that the track title contains the name of the composer, work and movement and the album title contains the composer, work and album artists. This was all done long ago before most control point software could properly handle classical music tags.
The issue I have now is that my control point software does not properly handle numerical order in these tags, i.e. I get things showing up as 1, 10, 11, ...2, 20, 21, etc.
To get the ordering I want I wish to add a leading zero to the number of the work, which is in the middle of the string. For example, Mahler Symphony No. 9 becomes Mahler Symphony No. 09. But I need to add the zero to only the first instance of a number, because the movement number or opus number is also in the string.
In other words, I want this:
(random text) number (more random text) another number
to become this:
(random text) 0number (more random text) another number
In the regular expression topic I found something for this in the track tag, ^(\d)$ - 0$1
But I've tried every permutation of this expression I could think of and nothing is working correctly. Any help would be greatly appreciated.