title: HTML5 minimum character length validation ignoring spaces and tabs
body: <p>I am using HTML5 'pattern' attribute with 'required' for validation of input boxes. HTML5's required attribute works but it can accept spaces and tabs which is not good because user will just put spaces then. I need regex such that it will accepts space and tabs but able to count only character's. Example "ronny jones" this should give 10.</p>
  
  <p>In javascript we do it using something like this, I am looking for similar thing in HTML5</p>
  
  <pre><code>      var name = document.forms['contact']['name'].value.replace(/ /g,""); // remove whitespace
    if(name.length&lt;6){  // count number of character.
       document.getElementById('message').innerHTML="Enter correct Name";   
       return false;
    }
  </code></pre>
  
  <p>I found one related question to this on SO : <a href="https://stackoverflow.com/questions/10281962/is-there-a-minlength-validation-attribute-in-html5">Is there a minlength validation attribute in HTML5?</a> but it accepts spaces and tabs, which I don't want.</p>
  
  <p>Below is my code with HTML5 pattern,</p>
  
  <pre><code>    &lt;input type="text" name="name" class="form-control" placeholder="Your Full Name" pattern="[A-Za-z]{6,}" title="Name should have atleast 6 characters." required="" /&gt;
  </code></pre>