Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

email regex javascript

//Expression
let regex = /^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/;
let email = "test.gmail.com"
//Execution
if(email.match(regex)){
console.log("valid")
}else{
console.log("Invalid")
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #email #regex #javascript
ADD COMMENT
Topic
Name
7+4 =