Im trying to test a string that may have numbers spaces with 14 length, so i used Yup matches to archieve that:
what im testing is "000 000 0000 0"
myString: Yup.string() .required("required") .matches(/^[d ]{14}$/)
i've tested the expression in https://regex101.com/ and seems fine. I dont know what's happening. Thanks!
1.4m articles
1.4m replys
5 comments
57.0k users