Validation Phone number

Validation Phone number

public static bool IsPhoneNumber(string number) { return Regex.Match(number, @"^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$").Success; }
Whatsapp-chat