public void IsAlphanumeric()
{
string strReturn = string.Empty;
string source = "ADasddasdad";
Regex pattern = new Regex("[^0-9a-zA-Z]");
Response.Write(!pattern.IsMatch(source));
}
{
string strReturn = string.Empty;
string source = "ADasddasdad";
Regex pattern = new Regex("[^0-9a-zA-Z]");
Response.Write(!pattern.IsMatch(source));
}
No comments:
Post a Comment