I have the following string
"DJ Antoine, Conor Maynard - Dancing In The Headlights - teledysk, tekst piosenki"
and I would like to get only:
"DJ Antoine, Conor Maynard - Dancing In The Headlights"
I use regex but it not working:
^([^\;]+)$ - teledysk, tekst piosenki
^([^\;]+)$?^and$are the start and end of the string, you can't have them in the middle. regex101.com/r/nRhNYv/1 (if that string is your regex, your PHP usage is missing from question).preg_match()