// Simple and very useful regex. Just Pass your email whare is email here const regex = /S+@S+.S+/ regex.test(email here)