by truth » Fri Jul 18, 2014 4:59 pm
Glad you found a solution.
For the given examples, its quick & efficient.
I often do something similiar when name-formats dont change.
If anyone has multiple name formats, use with caution, especially with filenames:
Group1 matches 1st 2Digits anywhere in Origname
Group2 matches either AnyText/NoText until
Group3 matches Last 4Digits anywhere in Origname
So while text from \1 to \3 is matched & re-ordered,
text outside that range is removed from Newname:
Text12abc3456Text -> 3456abc12
aa123456zz ----------> 345612
000003 ---------------> 000300
As an example, here's a more specific match:
^(\d\d)([A-Z]{3,4})(\d{4})$
The ^ ensures Origname starts with 2Digits
The $ ensures Origname ends with 4Digits
Group2 matches AllText-inbetween only if 3or4 UpperCases
Its been a pleasure posting to this board, sorry I didnt have more time.
It'll prob be quite a while before I can internet again, good luck to all.