I have a folder with many files that start with an email address eg:
"email@example.com - rest of file name includes spaces - main-name is here.txt" (no quotes surround the filname)
(yes I know it's a craze list of names).
Anyway, I'd like to remove the prefix text up the word "main" as that where the files begin to differ..
I thought regex would be good for this so in search I put all the text up to the space just before the world "main" and left replacement text filed empty. My hope was all that leading text would be stripped. However all I ever see as the final result is the .txt (ie the extension)
There is probably an easier way to strip that text tha using regex, (by position maybe - butthen I'd have to count all those characters), but appreciate knowing where I have gone wrong.