You are not logged in.
Expression: (.+)(\.\d+).*
Replace: $1$2
aaa.104.aaa.bbb.ccc.txt aaa.104.txt
aaa.104.aaa.txt aaa.104.txt
aaa.aaa.103.aaa.txt aaa.aaa.103.txt
aaa.aaa.104.txt aaa.aaa.104.txt
Just make sure it satisfies your real files.
Offline
YES, again.
This is it.
Just a * instead of +
I have try a lot of things but not this.
Thanks Stefan and den4b (creator of this "SO GOOD" software)
_________________
Do, or do not. There is no 'try.'" -- Jedi Master Yoda
Offline
Note the updated expression in the previous post: (.+)(\.\d+).* ... i also put extra "\." in front of the digits, to take into account the very first examples in this topic. This will ensure that the sequence of digits needs a DOT in front of it to be recognized as $2 (second subpattern). So all this patter will do is... strip everything between extension and the last sequence of digits which has a dot in front of them.
Anyway, glad to be of help
Offline
I saw the new "\."
I was already put it into the old rule (from Stefan), for the exact reason that you say.
This is why the difference was just the "*"
Thanks again both of you. Really big help.
_________________
Do, or do not. There is no 'try.'" -- Jedi Master Yoda
Offline
Good good! Ozzii mastered the RegEx go ahead Ozzii, go!
Hi Denis, take your time and think about real life and x-mas. All the best for you (all)
Stefan
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline