I have some book names that are like this
lastname, firstname - bookname.extension
firstname lastname - bookname.extension
I wanted to use a php regex to change this formats into
bookname - firstname lastname.extension
I hope there is an easy way to make a regex to extract an array having the firstname, lastname, author and extension.