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
var string = 'test- _ 0Test'; string.match(/^[-_ a-zA-Z0-9]+$/)