title: asp validation for multiple spaces between strings
body: <p>I've a textbox for name field where I've used asp validation for proper name format. I want to validate multiple spaces between the strings. How can I do that? The leading and trail spaces are removed by trim() function but how can I validate multiple spaces between the strings? like</p>
  
  <pre><code>multiple    spaces
  
  no   space
  </code></pre>
  
  <p>My validation code::</p>
  
  <pre><code>&lt;label&gt;
      &lt;span&gt;Full name&lt;/span&gt;
      &lt;input type="text" id="txt_name" runat="server" required="required"/&gt;      
      &lt;asp:RegularExpressionValidator ID="rev_txt_name" runat="server" ControlToValidate="txt_name" ForeColor="Red" 
      ErrorMessage="Invalid name!" SetFocusOnError="True" ValidationExpression="^[a-zA-Z'.\s]{2,50}"&gt;&lt;/asp:RegularExpressionValidator&gt;
  
  &lt;/label&gt;
  </code></pre>