Validate French phone numbers
FRENCH_PHONE_PATTERN = /^(0|+33[s-]?)[1-9][s-]?(d{2}[s-]?){4}$/
def french_phone_number?(phone_number)
# returns true or false
!phone_number.match(FRENCH_PHONE_PATTERN).nil?
end
Validate French phone numbers
FRENCH_PHONE_PATTERN = /^(0|+33[s-]?)[1-9][s-]?(d{2}[s-]?){4}$/
def french_phone_number?(phone_number)
# returns true or false
!phone_number.match(FRENCH_PHONE_PATTERN).nil?
end
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us