hi this is my first try at RegExp
i want to validate an email:
The rules are:
1. There must be an @ sign.
2. There must be an '.' sign.
3. '@' and '.' cannot be together.
4. '..' is not allowed.
$email="Asd@as1dcomin..s";
if(eregi("[a-z0-9]+[^.]+[^.]@[^.][a-z0-9.]+[^..]+",$email))
echo "Good Email";
else
echo "Stupid Email";
this checks gor everything but '..' so whats wrong. can u give me a good tutorial (which can explain in a human language )...
Known is handfull, Unknown is worldfull
i want to validate an email:
The rules are:
1. There must be an @ sign.
2. There must be an '.' sign.
3. '@' and '.' cannot be together.
4. '..' is not allowed.
$email="Asd@as1dcomin..s";
if(eregi("[a-z0-9]+[^.]+[^.]@[^.][a-z0-9.]+[^..]+",$email))
echo "Good Email";
else
echo "Stupid Email";
this checks gor everything but '..' so whats wrong. can u give me a good tutorial (which can explain in a human language )...
Known is handfull, Unknown is worldfull