Search found 1 match

by noclick
2012-02-15 07:07:35
Forum: Ant Renamer > Help
Topic: how to add inside my filename numbers?
Replies: 7
Views: 3903

for the third one
using regular expression:

Expression:
^(.*)([0-9]{1,2})-([0-9]{1,2})-([0-9]{2,4})(.+)$
New name:
$1 $4-$2-$3$5

Result:
ABCXYZDEFG 7-19-10.doc
BE RENAMED TO :
ABCXYZDEFG 10-07-19.doc

but the main problem is how to rename "10" to "2010",and if add "20" in the frot directly ...