Hi Guys,
For my email address validation I found this regex online ages ago:
preg_match('/[0-9][A-z0-9-]+[@][A-z0-9-]+([.][A-z0-9_-]+)*[.][A-z]{2,4}$/',$the_email))
But I just found out it is not letting email addresses with a . (period) before the @.
Using my learning of Regex, from the tutorials you guys directed me to, I have tried adding to it:
preg_match('/[0-9][A-z0-9-]+[.?A-z0-9-]+[@][A-z0-9-]+([.][A-z0-9-]+)*[.][A-z]{2,4}$/',$the_email))
Is the above regex suitable for validating emails?