Remove part of filename
Hi there,
I am hoping that someone can please help me remove part of a filename using string substitutions. I have hundreds of files that all have a unique number and unique description. The numbers are all 6 digits that have 2 consistent letters in front and have a "-" after. I wish to remove everything after the "-" so I am just left with 8 characters (the 2 letters followed by the 6 numbers). For example -
I would like to turn:
JS000045-Image-VeryFrustrating.jpg
JS003556-Image-TightDeadline.jpg
JS000234-Image-PleaseHelp.jpg
Into:
JS000045.jpg
JS003556.jpg
JS000234.jpg
Thanks in advance!

