We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7578e0b commit 97562c1Copy full SHA for 97562c1
strings/indian_phone_validator.py
@@ -16,6 +16,8 @@ def indian_phone_validator(phone: str) -> bool:
16
True
17
>>> indian_phone_validator("+91-1234567899")
18
False
19
+ >>> indian_phone_validator("+91-9876543218")
20
+ True
21
"""
22
pat = re.compile(r"^(\+91[\-\s]?)?[0]?(91)?[789]\d{9}$")
23
match = re.search(pat, phone)
0 commit comments