Code to go logo
Created using Figma
Use Cases
Contribute
How to validate email in JavaScript
Regex
By Jad Joubran ·
Last updated Dec 16, 2017
const pattern = /\S+@\S+\.\S+/; pattern.test("
[email protected]
");
true
Dec 16, 2017
1
Jad Joubran
See answer
1
Jad Joubran
Learn JavaScript step by step