showing results for - "validate email"
Aurore
26 May 2019
1function validateEmail(email) {
2    const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
3    return re.test(String(email).toLowerCase());
4}
5
Sophia
14 Sep 2020
1
2# Language: Perl
3
4sub Validate_Email($)
5{
6   my $sEmail = $_[0];
7   my $sRetMsg = "";
8
9   my $sUserNmRegex = "^[[:alnum:]]+([.!#\$\%&'*+-\/=?^_'{|]?[[:alnum:]]+)*";
10   my $sDomainRegex = "@[[:alnum:]]+([.-]{1}[[:alnum:]]+)*";
11   my $sEndRegex = "([.]{1}[[:alnum:]]+)+";
12
13   #  Work
14   #--------#
15
16   if ($sEmail =~ /$sUserNmRegex$sDomainRegex$sEndRegex$/) {
17      $sRetMsg = "Email is valid";
18   }
19   else {
20      $sRetMsg = "Email is not valid";
21   }
22
23   return $sRetMsg;
24}
25
26my $sEmail = 'EmailExample@gmail.com';
27print "[Email:$sEmail] : " . Validate_Email($sEmail) . "\n";
28
29# OUTPUT -> [Email:EmailExample@gmail.com] : Email is valid
30
queries leading to this page
validate email addressvalidate email formatemail verification in javascript using regexregex email javascriptcheck email jscheck valid email jsrejex email jsemail regexregex for checking emailjs check is emailregx for email addressvalidate email regex in javascriptemail valdiation regexbest email regexregex validate emailregular expression for emailemail validation regex jsregex is valid emailjavascript check if string is emailvalidate emailjs email regexvalidation for emailjavascript check if emailcheck email validation javascriptcheck email validationcheck is email jsjavascript regex emailvalid emailemail validation regexbest email regex patternvalidate if its emailemail validation regex javascriptemail verification js functionvalidate the email addresemail address regex javascriptemail validationjavascript validate emailjavascript is email addressemail validation in javascriptregex check emailvalid email addressemail validate regex in jsis email javascriptregex for emailregex for email validationemail validation pattern javascriptvalidate an email address node jsemail is valid emailvalid email javascript functionemail validatorjavascript email validationregex validation emailemail regex javascriptcheck if email javascriptregex to validate mail in jsemail validation jsemail adress format javascriptregex string emailcheck if an email is validhow to check email format in javascriptjs validate email with regexjs email regex not accepting emails with a 2bemail expression validation javascriptcheck if email is validvalidate email regexregex patern mailvalidation emailvalidate email javascriptcheck if input is email javascriptvalidate email