title: RegEx a name with special characters in javascript
body: <p>I'm relative new to RegEx and I've encountered a problem. I want to regex a name. I want it to be max 100 characters, contain at least 2 alphabetic characters and it will allow the character '-'. </p>
  
  <p>I have no problem to only check for alphabetic characters or both alphabetic characters and hyphen but I dont't want a name that potantially can be '---------'.</p>
  
  <p>My code without check for hyphens is</p>
  
  <pre><code>var nameRegExp = /^([a-z]){2,100}$/;
  </code></pre>
  
  <p>An explanation for the code is appreciated as well.
  Thanks!</p>