Name Space : System.Test.RegularExpression;
public bool IsNumeric(string inputString)
{
//Regex r = new Regex("^[a-zA-Z0-9,.]+$");
Regex r = new Regex("^[0-9]+$");
if (r.IsMatch(inputString))
return true;
else
return false;
}
No comments :
Post a Comment