title: Regular expression to limit number of characters to 10
body: <p>I am trying to write a <a href="http://en.wikipedia.org/wiki/Regular_expression" rel="noreferrer">regular expression</a> that will only allow lowercase letters and up to 10 characters. What I have so far looks like this:</p>
  
  <pre><code>pattern: /^[a-z]{0,10}+$/ 
  </code></pre>
  
  <p>This does not work or compile. I had a working one that would just allow lowercase letters which was this:</p>
  
  <pre><code>pattern: /^[a-z]+$/ 
  </code></pre>
  
  <p>But I need to limit the number of characters to 10.</p>