I ran into a problem that I can't figure out how to fix. I have a series of video files with names like this:
FooBar-tooGGG1 - s01e01 - (HW) - SomeText.mp4
So I have to make sure that spaces are added before capital letters BUT ONLY until "- s01e" appears (thus ignoring the rest of the text):
Foo Bar-too GGG 1 - s01e01 - (HW) - SomeText.mp4
Looking around I stumbled upon these RegEX:
(?-i)([A-Z]{1})([^A-Z]*)
Replace with: $1$2
.+?(?=abc)
or
\w*(?<!foo)bar
or
^(?:(?!foo).)*
and this played a little bit on Regex101 but I can't end up getting only two types of results:
(?-i)([A-Z]{1})([^A-Z]*.+?(?= - s01e))
or
(?-i)([A-Z]{1})([^A-Z]*)/g
Respectively:
F ooBar-tooGGG1 - s01e01 - (HW) - SomeText.mp4
and
Foo Bar-too GGG1 - s01e01 - ( H W) - Some Text.mp4
I'm not very good at RegEx but I've been trying everything since this morning, put in the middle, use +? instead of * o. * etc.
RegEX Engine: PCRE2; PCRE. If bulk rename doesn't fit as software, I also have: FlexibleRenamer and RegexRenamer (also for Windows)