Regular expression for email. You shouldn't use RegExp for validating emails. Use it only for hinting to the user.
$ npm install regex-email
var regex = require('regex-email');
regex.test('tobi+ferret@vision.com');
// => true
- Update your Email RegExp by Dustin Diaz
- sindresorhus/email-regex
- You shouldn't use this for validating emails. Use it only for hinting to the user.