title: Javascript validation regex for names
body: <p>I am looking to accept names in my app with letters and hyphens or dashes, i based my code on an answer i found here
  and coded that:</p>
  
  <pre><code>function validName(n){
    var nameRegex = /^[a-zA-Z\-]+$/;
    if(n.match(nameRegex) == null){
      return "Wrong";
    }
    else{
      return "Right";
    }
  }
  </code></pre>
  
  <p>the only problem is that it accepts hyphen as the first letter (even multiple ones) which i don't want.
  thanks</p>