Skip to content

Instantly share code, notes, and snippets.

View nourhanahmedelbadawie's full-sized avatar
😇

Nourhan Ahmed nourhanahmedelbadawie

😇
View GitHub Profile
@dreamstarter
dreamstarter / Javascript - Simple email validation
Last active March 27, 2024 16:24
Javascript - Use a regex to check the email address input.
function checkEmail(email) {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
if (!reg.test(email)) return false;
return true;
}