Showing posts with label regular expression for numeric values. Show all posts
Showing posts with label regular expression for numeric values. Show all posts
May 26, 2010
Regular Expressions for validation control
I found a good website for getting and learning regular expressions for our validation needs. http://www.regular-expressions.info/
May 19, 2010
Creating Regular Expression for Numeric Values and using it on a TextBox control in C#
//Creating regular expression for numeric values
Regex rxNum = new Regex(@"^[0-9\s]+$");
//using regular expression on a TextBox Control in C#
if (!rxNum.IsMatch(textbox1.Text))
Response.write("Textbox1 has Numeric value");
Regex rxNum = new Regex(@"^[0-9\s]+$");
//using regular expression on a TextBox Control in C#
if (!rxNum.IsMatch(textbox1.Text))
Response.write("Textbox1 has Numeric value");
Subscribe to:
Posts (Atom)