title: how do I use Regular Expressions in Javascript?
body: <p>I used it in C# </p>
  
  <pre><code>var validString = new Regex(@"^[a-z][a-z\d!@#$%\^&amp;*()\-+]{0,7}$(?&lt;=\d\D+)", RegexOptions.Compiled); 
  </code></pre>
  
  <p>I am trying to enforce the following rules for password creation</p>
  
  <pre>•Not have upper-case letters. 
  •Begin with a letter. 
  •Have at least 1 digit(s) not at the beginning and end. 
  •Have up to 8 alphanumeric 
  •Does NOT have any symbols like @#$ characters (symbols like !@#$%^&*()-+). </pre>
  
  <p>Any help would be appreciated</p>