📌  相关文章
📜  是的,只有字符正则表达式验证做出反应 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:19.754000             🧑  作者: Mango

代码示例1
yup.string()
   .required("Please enter the required field")
   .matches(/^[aA-zZ\s]+$/, "Only alphabets are allowed for this field ")