15th Dec 2021, 3:42 AM
Aleksandr
Aleksandr - avatar
3 Respostas
+ 2
A valid phone number consists of exactly 8 numbers and STARTS with 1, 8, or 9: r"[189]\d{7}
quot;
15th Dec 2021, 3:53 AM
Solo
Solo - avatar
+ 2
Thanks! it helped! I will keep this in mind
15th Dec 2021, 3:57 AM
Aleksandr
Aleksandr - avatar
+ 1
Hint: Your regex needs to know the beginning and/or end of the pattern. ^ $
15th Dec 2021, 3:54 AM
ChaoticDawg
ChaoticDawg - avatar