SyntaxFix
Write A Post
Hire A Developer
Questions
Try [^- ], \s will match 5 other characters beside the space (like tab, newline, formfeed, carriage return).
[^- ]
\s