strings.indian_phone_validator¶
Functions¶
|
Determine whether the string is a valid phone number or not |
Module Contents¶
- strings.indian_phone_validator.indian_phone_validator(phone: str) bool ¶
Determine whether the string is a valid phone number or not :param phone: :return: Boolean >>> indian_phone_validator(“+91123456789”) False >>> indian_phone_validator(“+919876543210”) True >>> indian_phone_validator(“01234567896”) False >>> indian_phone_validator(“919876543218”) True >>> indian_phone_validator(“+91-1234567899”) False >>> indian_phone_validator(“+91-9876543218”) True