Numerieke regex

<PRE><FONT size1><P><FONT size=2><FONT color=#008000>//match on numeric charachter <BR></FONT><FONT color=#2b91af>Match</FONT><FONT color=#0000ff> m = </FONT><FONT color=#2b91af>Regex</FONT><FONT color=#0000ff>.Match(this.TextBox1.Text, </FONT><FONT color=#a31515>"^[0-9]{1,}$"</FONT><FONT color=#0000ff>);<BR>if (m.Success)<BR>{<BR>this.lblError.Text = </FONT><FONT color=#a31515>"alleen charachters"</FONT><FONT color=#0000ff>;<BR>}<BR></FONT></FONT><FONT size=2><FONT color=#0000ff>else<BR>{<BR>this.lblError.Text = </FONT><FONT color=#a31515>"illegale charachter gevonden "</FONT><FONT color=#0000ff>;<BR>}</FONT></FONT></P> </PRE></FONT>

{{opmerking.Naam}}:

{{opmerking.OpmerkingText}}

            

Saving your comment....

Naam is verplicht!
Email is verplicht!
Opmerking is verplicht!