Regex to match any non-alphanumeric character but the minus
Try using this regular expression :
[^\w-]+
Edit :
Seems that the right regular expression is :
[^a-zA-Z0-9-]+
Just inverting what you want and what you don't:
[^a-zA-Z0-9-]+
RegexPal link for this.