- Code: Select all
" - 00 -"
Where the "00" could be any two digit number, I would like to search for this in my filename and delete it. There may be more hyphens and other numbers in the filename, but there will only ever be one instance of SPACE, HYPHEN, SPACE, DIGIT, DIGIT, SPACE, HYPHEN.
And a separate problem...
I would like to remove everything between the first and last hyphen, leaving just one hyphen. So, from this:
- Code: Select all
"I want this text - not this - text - only"
to this:
- Code: Select all
"I want this text - only"
Thank you in advance!