I need to match any song title, here are my tests:
ar-tist - title-o.fvc / the song.mp3
Nulbarich - TOKYO / THE FIRST TAKE
James Hersey – Don‘t Need Me feat. narou
KEIJU – I Get Lonely (Official Video) / Album "T.A.T.O."
Hiplin / Night Cruising(Official Lyric Video)
I have this regex:
^(.+)s+[–-/]s+(.+)
but the problem is that it split with /–- in reverse, from the end of the matching string, idk if its clear or not, for example I need to split ar-tist - title-o.fvc / the song.mp3
like this:
first group – ar-tist
second – title-o.fvc / the song.mp3
but I get this:
first group – ar-tist - title-o.fvc
second – the song.mp3
I kind of fixed it this way:
^(.+)s+–s+(.+)|^(.+)s+-s+(.+)|^(.+)s+/s+(.+)
but the problem with this regex that it creates 6 groups now, I need only 2