fadillzzz
03-28-2012, 08:39 AM
Inadequate regex pattern for matching email during registration
The current regex pattern for matching email address during registration won't match email address of a domain with tld longer than 3 letters such as .info, .asia, etc.The attached register.php file contains a new regex that can match 4 letters tld. Do note that the regex pattern is not perfect. It's virtually impossible to have a regex that can differentiate which one is a valid email and which one is not. Although, the new pattern will match 99% email address that is being used as of today, there are some certain email address that will fail the test, such as email ending with a .museum tld.
Further improvement of email validation will be done if necessary or is requested by the vast majority of the users.