title: How to use the ASP.NET Regular expression validator
body: <p>I am trying to set the minimum number of characters for a textbox, and if the user input dos not reach the set minimum an error must show, In i was trying to do just that using <code>&lt;asp:RegularExperssionValidator&gt;</code> but the error message is nit showing, what am i missing or doing wrong? </p>
  
  <pre><code>&lt;asp:TextBox ID="TextBox2" runat="server" CssClass="form-control"&gt;&lt;/asp:TextBox&gt; 
  &lt;asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
      ErrorMessage="ID length is Less than 10" ControlToValidate="TextBox2" ValidationExpression=".{10}.*"&gt;
  &lt;/asp:RegularExpressionValidator&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>                `
  </code></pre>