HI all
I am totally flummoxed by regex. No matter how much I try to understand it,I don't get it.
I have thousands of files which my backup software, ViceVersa, archived upon deletion. It rename them all from, eg
Sun DK.jpg_(2016-05-16_19-19-16_DEL_T).jpg
to Sun DK.jpg
As you can see, ViceVersa appends a timestamp after the file extension, in the format _(*).ORIGINALEXTENSION
So I need to delete everything from and including the _ after the file original file extension.
Hope this is clear. Another example:
Max.mxp_(2016-05-16_19-19-16_DEL_T).mxp need to change to Max.mpx
Kind regards.