I am searching for a regular expression for allowing alphanumeric characters, -, _ or spaces in JavaScript/jQuery. I tried Googling but wasn\'t able to find that.
Ca
Try this regex:
/^[a-z\d\-_\s]+$/i