I have a load of .jpg files in a folder that have non alphabetical characters like ! , ( ) ^ & .
and more.
I need to rename the files so that anything that is not A-Z a-z 0-9
is replaced with nothing. Also spaces should be replaced with -
the files also end with .mp4$$$.jpg this part needs to remain in tact.
For example if the file is called
ask me anything.mp4001.jpg
ask, me. anything! 2.mp4001.jpg
The files name should be changed to
ask-me-anything.mp4001.jpg
ask-me-anything-2.mp4001.jpg