showing results for - "phone number validation in yup"
Edoardo
04 Sep 2016
1Yup.object({
2  phone: Yup.string()
3      .required("This field is Required")
4      .matches(
5        /^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,
6        "Phone number is not valid"
7      )
8})            
Christian
15 Jun 2018
1const phoneRegExp = /^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/
2
3phoneNumber: Yup.string().matches(phoneRegExp, 'Phone number is not valid')
queries leading to this page
check for phone in yupphone number validation in yupyup validation for numberyup custom number validationyup numbersphone number validation with yupyup validation for mobile number 10 digitphone number yep valdationyup validation formik mobile numberverify phone number yupvalidating phone number using yupyup uk phone numberyup telyup validate mobile numberyup phone number notrequiredvalidation phone number yupyup validations fro numberyup validation to allow only numbers in javascriptyup phone number validation how do i validate a phone number with yup phone 3fyup for phone numerhow to yup react native phone number validationyup mobile numberyup validate number e stringyup phone number limitemail 2fphone validation in yupyup phone valid with countryyup number only validationaccept phone number only from yupusing yup to validate phone numbermobile number validation in formikyup regex validation example yup string matches numbersyup and telephone number validation nullablenumber validation yupphone yupyup number requiredyup telephone numberphone yup matchesyup regular expression for numbersyup mobile nuimber validationyup validation phone number 10 digityup valiationup for phone numeryup valid phoneyup for phone noyup mobile number validationhow to use yup for phone number validationyup check for phonehow to yup react native phone number validation with 22 2b 22 symbolphone number verification regex yupyup phone number 2byup cellphone number validationphone number yupvalid 2b phone number yupyup validate internaltional phone numberyup validation phonenumberyup validation phone numberinternational phone number yupyup phone email address validationphone number validation using yupyup numberyup contact number vayup validation phoneyup phone examplevalidate phone in yupyup phone number validation examplephone number yup validationyup for phone numberyup phone numberyup js number 28 29 accept 2cyup regex validation only numbersyup format phone numbermobile number validation in yupphone number validation using formikyup validation for mobile number indiavalidating phone number with yupyup phone number formatteryup regular expression for priceformik validation for phone numberyup contact number validation formikyup numberyup validation on phone numbersyup validate phone numberyup phone number validationyup phone number franceyup validation for phone numberyup check phone numberyup phone nuber validationyup valid numbervalidate mobile number with yupphone number with yupspam a phone numberyup checking phone number is valid reactyup number validation with 4 digitemail and phone number validation in yupyup type phone numberindia phone number regex yupyup phone mphone numberyup phone number validation indiayup validation for phone numbersformik phone number validationyup contact number valinumeric validation in javascript yupyup validation for mobile numberyup validation for phone numphone number validate with yupyup phone number validation not requiredphone number validation yupyup how to validate phone numberyup phonevalidationvalid number phone yupyup for phone number validationyup us phone number validationyup webpack imported module 0 string 28 29 phone is not a functionyum phone numberyup phoneyup phone validationadding a phone number via yupyup phone numbeyup number 3fnumber validation in yupyup phonenumbers validationyup phone number validation 5cyup phonenumber ruleyup numberyup number validationphone yup validationyup phone numbers phone number validation with country code using yupyup and telephone number validationvalidate phone number using yupyup phone validyup tel numberyup number whenhow to validate phone number in yupyup check if email or mobile validationvalidate phone numbers using yupyup validation numbercheck emai or phone with yup validationyup number validation messageyup no numbersyup verification uk phone numberformik phone numberyup string matches for phone numberyup min number validationyup validate numberphone with yupyup verfication of country codeyup validation for numberyup regex validation numbers onlyphone indian number validation yupyup phoneregexpyup aus phone validationyup mobile number validation indonesiavalidate phone number with yupregex number i yupyup phoneyup phone exampleyup mobile phoneyup validation react js for numberyup form phone number validationvalidate phone number yupyup with numbersphone number validation in yup