Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

yup only characters regex validation react

yup.string()
   .required("Please enter the required field")
   .matches(/^[aA-zZs]+$/, "Only alphabets are allowed for this field ")
 
PREVIOUS NEXT
Tagged: #yup #characters #regex #validation #react
ADD COMMENT
Topic
Name
3+5 =