> For the complete documentation index, see [llms.txt](https://kants.gitbook.io/xeant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kants.gitbook.io/xeant/java-script/e-mail.md).

# E-mail 확인 정규식

```javascript
<input type="email" name="email" id="useremail" >


var emailRule =/^[A-Za-z0-9_\.\-]+@[A-Za-z0-9\-]+\.[A-Za-z0-9\-]+/;

$('#useremail').keyup(function (){
    email = $('#useremail').val(); 
   
    if(!emailRule.test(email)) {            
    //경고
    alert(email);
}else{
    console.log('true');
    console.log(email);
}
});
```
