I have a bunch of files with the name in a format such as:
How to_draw a Tiger - and many more -- Dr Doolittle -- a bunch of other things -- even more.epub
I want to parse out up until the second -- so that I end up with
How to_draw a Tiger - and many more -- Dr Doolittle.epub
The problem is I can't figure out how to pattern match. I cant use custom text like (sorry I kept getting a broken link picture when I tried to load the image but here is the link
https://drive.google.com/file/d/1Quf92pGONioZ4aMevrFAV17UfuQ2WFT9/view?usp=sharing
because the titles have special characters. I assume there is some way to do this with a script but I have no idea how to create such a script and I've searched and can't find something close that I could adapt. Thanks in advance for the help!