JSFiddle - React, Tailwind, and code Playground

by fosterz

JavaScript

var email = /(^[^,@]*[^ ,@][^,@])+@^[^,@]*[^ ,@][^,@]+\.^[^,@]*[^ ,@][^,@]/;
//var email = /^[^,]*[^ ,][^,]*$/;
console.log(email.test("[email protected]"));