i am using a Regular Expression that validates an email address here is the regular expression i am using.
preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email)
most of the above code are self explanatory like
a) ^ represents NOT.
b) the start of the string should be either _ a-z 0-9
c) match the next character which starts with dot
d) now what does *@ means here, couldn't it be just @ which means the next character should be @
e) next again it will try and find dot, the first dot is optional and the second is compulsory.
f) in the end what does $ means?