Code error for a capital after a space, dash 6, a space.

No, it is a code given to me here /t/16302/1

by Victor Kostas
Post November 9, 2014, 12:21

I give you but it is good but in the case seen above it is not anymore.

Field: TITLE
Regular expression:

(?:(?<=\s-\s)|^)(.*?)(?=$|\s-\s)

Sentence Case
$caps3($1)
Result: Dire straits - Sultans of swing

I would like to start a capital sentence, but not at the beginning of each word. And capital at the beginning of ' - '