Записи с меткой ‘validation

public bool TestEmailRegex(string emailAddress) { string patternStrict = @"^(([^<>()[\]\\.,;:\s@\""]+" + @"(\.[^<>()[\]\\.,;:\s@\""]+)*)|(\"".+\""))@" + @"((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" + @"\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+" + @"[a-zA-Z]{2,}))$"; Regex reStrict = new Regex(patternStrict); bool isStrictMatch = reStrict.IsMatch(emailAddress); return isStrictMatch; } Исходник: https://www.rame0.ru/redir/CkFMFl4YTk5OTh8HUQhUX1dKA0cBVUFWCx5QXF8aBwxNV15fUwMDCwoUBVwEBxsCB1tVGQYHAAROAFFXCgRWCQYACVFTGDFYS0pYCldIc1tXUQoZJVBXRwZDQFZBGBNRFl0VNAFQFFVYSxwhSBVEU0VLD1sKRx1UEEBL/


Наверх