Answers for "yup only characters regex validation react"

1

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 "yup only characters regex validation react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language