Validate email address


/ Published in: PHP
Save to your folder(s)

Definitivo. Errore bassissimo.


Copy this code and paste it in your HTML
  1. $pattern = "/^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i";
  2.  
  3. echo "ok";
  4. else echo "no";

URL: email_validator

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.