Answers for "regex in yup validation react"

2

yup only characters regex validation react

yup.string()
   .required("Please enter the required field")
   .matches(/^[aA-zZ\s]+$/, "Only alphabets are allowed for this field ")
Posted by: Guest on September-29-2020

Code answers related to "regex in yup validation react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language