asp.net regularexpressionvalidator ValidationExpression
<p>I want to make a asp.net regularexpressionvalidator ValidationExpression that will prevent to give input ; and –- .</p>

<p>I can do for – and it is ValidationExpression="[^-]*"</p>

<pre><code>&lt;asp:RegularExpressionValidator ID="RegularExpressionValidator1"
runat="server" 
ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="**" 
             ValidationExpression="[^-]*"&gt;&lt;/asp:RegularExpressionValidator&gt;
</code></pre>

<p>Above expression can prevent single – character. I will give permission for single – chareter. I will block for double – character (--).
 I need to prevent ; and – at a time.</p>

<p>Can anyone help me?</p>
