📅  最后修改于: 2022-03-11 15:04:28.193000             🧑  作者: Mango
const {
control,
handleSubmit,
formState: { errors }
} = useForm();
()\\[\]\\.,;:\s@"]+(\.[^<>()\\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
message: 'Please enter a valid Email'
}
}}
/>