title: JavaScript Regular Expression For Usernames No Spaces
body: <p>I am seeking help with a JavaScript RegEx for user names.  Basically I need the letters A-Z, digits, periods, dashes, underscores, dollar signs, at signs, the asterisk, and the exclamation point to be allowed and the username can be up to 30 characters long.  No spaces or commas should be allowed for example.</p>
  
  <p>Allowed characters: </p>
  
  <pre><code>[a-zA-Z0-9]
  .
  -
  _
  $
  @
  *
  !
  </code></pre>
  
  <ul>
  <li>User.name = passes </li>
  <li>User name = fails </li>
  <li>User,name = fails</li>
  <li>usernameeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee = fails</li>
  </ul>