You can use
public bool IsAlpha(string strToCheck)
{
Regex objAlphaPattern=new Regex("[^a-zA-Z]");
return !objAlphaPattern.IsMatch(strToCheck);
}
Regards
solved Validate input string [closed]
You can use
public bool IsAlpha(string strToCheck)
{
Regex objAlphaPattern=new Regex("[^a-zA-Z]");
return !objAlphaPattern.IsMatch(strToCheck);
}
Regards
solved Validate input string [closed]