by truth » Wed Oct 02, 2013 5:02 am
Not so much, just realized it fails with multiple periods (when the 1st-one is 7chars from $End):
Filen.ame.txt --> Filen.txt.ame
If thats an issue, use the below instead, it wont match anymore .'s after the . 7chars from $End
(.*)(\.[^.]{3})([^.]{4})$
\1\3\2