yup only characters regex validation react

Solutions on MaxInterview for yup only characters regex validation react by the best coders in the world

showing results for - "yup only characters regex validation react"
Viktoria
09 Mar 2017
1yup.string()
2   .required("Please enter the required field")
3   .matches(/^[aA-zZ\s]+$/, "Only alphabets are allowed for this field ")