JavaScript Regex (string should include only alpha, space, hyphen)

Viewed 24404

I'm trying to create a regex that will match only when the string has anything but alphas, spaces, and hyphens. In other words, the string can only contain letters, spaces, and hyphens.

2 Answers
Related