title: PHP regular expression for validating first and lastname
body: <p>I am trying to use regex to validate the users first and last name on a form. </p>
  
  <h2>Rules</h2>
  
  <ul>
  <li>Must be alphabetic</li>
  <li>First letter can either by uppercase or lowercase</li>
  <li>Followed by all lowercase letters</li>
  <li>Must be at least 2 letters long and cannot be longer than 15 letters.</li>
  <li>No spaces.</li>
  </ul>
  
  <p>This is my attempt at the regular expression </p>
  
  <pre><code>!preg_match('/^[a-Z]{1}[a-z]{1,14}$/' 
  </code></pre>
  
  <p>But I am getting the error:</p>
  
  <blockquote>
    <p>: preg_match(): Compilation failed: range out of order in character
    class at offset 4</p>
  </blockquote>