I will preface this by saying that my regex knowledge is limited to the last hour of reading the manual vol. 2. I am trying to group a string into two groups:
1 = everything before a specific character
2 = everything after that specific character
Example:
Metallica-Enter Sandman-1991.mp3
to
Metallica.mp3
I have used:
Match: (^.+)-(.*)
Replace: \1
but it appears to be grouping from the last hyphen rather than the first, resulting in:
Metallica-Enter Sandman.mp3
How do i get it to group on the first instance of the hypehn?