4 lines
284 B
JavaScript
4 lines
284 B
JavaScript
// License: LGPL-3.0-or-later
|
|
// http://stackoverflow.com/questions/46155/validate-email-address-in-javascript
|
|
module.exports = /^(([^<>()\[\]\\.,;:\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,}))$/;
|
|
|