title: RegEx Pattern to Match Only Certain Characters
body: <p>I'm a newbie to RegEx, and this particular issue is flummoxing me. This is for use with a JavaScript function.</p>
  
  <p>I need to validate an input so that it matches only these criteria:</p>
  
  <ul>
  <li>Letters A-Z (upper and lowercase)</li>
  <li>Numbers 0-9</li>
  <li>The following additional characters: space, period (.), comma (,), plus (+), and dash (-)</li>
  </ul>
  
  <p>I can write a pattern easily enough for the first two criteria, but the third one is more difficult. This is the last pattern I managed, but it doesn't seem to work with the test string <code>Farh%%$$+++,</code></p>
  
  <p>Here's the pattern I'm trying </p>
  
  <pre><code>[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\+\\.\\,\\s]*$ 
  </code></pre>
  
  <p>It's failing in that it's letting characters other than those specified in the text field when submitting the form.</p>
  
  <p>Any help would be greatly appreciated.</p>