Here I created a method and it's named is CheckName.
public Boolean CheckName( string str) { if (Regex.IsMatch(str, @"^[a-zA-Z.''-'\s-]{1,40}$")) { return true; } else { return false; } }
No comments:
Post a Comment