I need some yup email validation rules to show some custom messages.
- invalid if we don't get
@followed by a.
- abc@gmailcom (invalid)
- def.com (invalid)
What I've tried so far:
yup.string().email().matches(/^(?!\@*.)/)
- invalid if we get
@followed by,
- abc@gmail,com (invalid)
What I've tried so far:
yup.string().email().matches(/^(?!\@*,)/)
None of the solutions I tried worked out.