Answers for "regular expresion for email"

2

regex for email

^[w-.]+@([w-]+.)+[w-]{2,4}$
//will validate for:  [email protected] etc
Posted by: Guest on April-12-2021
0

regex email

<?php
if (preg_match("^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+.[a-zA-Z]+", $argv[1])) {
    echo "Match";
} else {
    echo "No Match";
}
?>
Posted by: Guest on October-14-2021

Code answers related to "regular expresion for email"

Code answers related to "Javascript"

Browse Popular Code Answers by Language