01. blahblahString1 01. - yadayadaString2.mp3
02. xxxxxxxStringA 02. - yyyyStringB.mp3
(Note, there are two spaces after the second "0[1-9].")
I want to remove everything between the second set of digits (including it) and the second string, replacing it with '(' so it should end up like
01. blahblahString1 (yadayadaString2.mp3
02. xxxxxxxStringA (yyyyStringB.mp3
After which, I would then just add a ')' as a suffix which should give me
01. blahblahString1 (yadayadaString2).mp3
02. xxxxxxxStringA (yyyyStringB).mp3
Trouble is, I don't know anything about regexs (or BRU for that matter). I tried to use http://regex101.com/ and make a regex myself but it didn't work (duh). I would appreciate some help in this. Thanks for reading.
This is what I came up with
- Code: Select all
(.*)([0-9][0-9]. - )(.*)
And maybe this might not be needed, but the first set of string isn't in English, or Latin alphabets. It's in Japanese. The second string is in English.