title: HTML 5 - number regular expression
body: <p>I have got an input field called Fleet no.</p>
  
  <p>I want to validate it using HTML 5 to only allow the input of digits to 5 digit max length.</p>
  
  <p>I have managed to only input digits but it only accepts 1 digit.</p>
  
  <p>I can't put more than 1 digit. This is what i tried to do:</p>
  
  <pre><code>&lt;div&gt;
    &lt;label for="element_1"&gt;Fleet Number &lt;/label&gt;
    &lt;input id="element_1" name="element_1" type="text" maxlength="255" 
    value="" required placeholder="Enter Digits only" pattern = "[0-9]"
    title='Fleet No. must contain digits only'/&gt; 
  &lt;/div&gt;
  </code></pre>