Hi Guys,
I am new in PHP and have an issue with emailvalidate function see my code below. This works for any other email validation but except for .africa domain. if I put for example [email protected] it get rejected with an alert “emails is invalid” see my reg expression code below and advise
This @"^[-a-zA-Z0-9][-.a-zA-Z0-9]@[-.a-zA-Z0-9]+(.[-.a-zA-Z0-9]+).
(com|edu|info|gov|int|mil|net|org|biz|name|museum|bank|africa|coop|aero|pro|tv|[a-zA-Z]{2})$"
or
^[a-z][^@]*@(([a-z][a-z0-9-]+).){0,3}(?2)$
Both do not work.
Please assist
Thanks
Peter