Menu
i have this code to validate an email
[code=php]if (preg_match(“/^[w-.]+@[w-.]+.[w-]+$/i”,$str))
but the problem is when i have an email like :
[QUOTE]
in this case the
check fails!!!!!
how to i handle the case that after the @ can be a case of 1 dot or of 2 dots?
thnaks in advance
peleg