title: Regex for allowing alphanumeric,-,_ and space
body: <p>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.</p>
  
  <p>Can anyone help me out with this?</p>
  
  <p>Thanks in advance.</p>