by GMA » Wed Feb 11, 2009 3:22 am
Hi, Eugene:
First of all, go to "Options > Ignore" and check "File Extensions". Then you're gonna need to do three passes, one for each kind of padding (I don't think there's any way to do it just in one). Use the following regular expressions:
For "Ax.TXT" > "A.00x":
MATCH: ([A-Z])([0-9])(.TXT)
REPLACE: \1.00\2
For "Axx.TXT" > "A.0xx":
MATCH: ([A-Z])([0-9]{2})(.TXT)
REPLACE: \1.0\2
For "Axxx.TXT" > "A.xxx":
MATCH: ([A-Z])([0-9]{3})(.TXT)
REPLACE: \1.\2
Of course, this was based strictly on your examples (it'll work for "A[x, xx or xxx].TXT" to "Z[x, xx or xxx].TXT"). But you might need to modify something if your filenames aren't exactly as you described them.
Best regards,
Gabriel.