0

Phone number with regex

I solved this problem but i need to make the phone number length 8 numbers and its not working with me

25th Oct 2020, 10:25 AM
Mariam Mohamed
Mariam Mohamed - avatar
4 Answers
+ 1
CarrieForle question isn't about getting length of phone number !
25th Oct 2020, 11:01 AM
Abhay
Abhay - avatar
0
len(phone_number)
25th Oct 2020, 10:26 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar
0
{} indicates how many times the previous values should repeat. For example: r'^[a-z]{8}
#x27; will match only words that contain alphabetical values of length 8.
25th Oct 2020, 10:54 AM
QTWizard
0
Here live code for phone numbers with regular expressions: https://code.sololearn.com/cx1tfbykB3pp/?ref=app
25th Oct 2020, 11:39 AM
JaScript
JaScript - avatar