how to validate email using regex and joi code example
Example: joi email validation regex
email: Joi.string().email({ minDomainSegments: 2, tlds: { allow: ['com', 'net'] } })
email: Joi.string().email({ minDomainSegments: 2, tlds: { allow: ['com', 'net'] } })