But I now want to tweek it and allow only min 2 and max 40 characters for the domain-part of the email address i.e after the symbol. The the non-email parts dont seem to need to be validated, so any solid email validating regex will work. This validateEmail function will check for the basic syntax of an email address (xyzexample.com). This article discusses the topic of validation of an Email address with regular expressions, and finally presents a C working example project.Ive searching for the best email regex, finally i found yours was the best. -Подписка по e-mail. -Поиск по дневнику. в этом дневнике. Home > Regular Expressions > Java Email Address Validation using Regex.Email validation using regular expressions is common task which may be required in any application which seek email address as required information in registration step. which, in turn, seems to be a duplicate of: Using a regular expression to validate an email address both of which contain much discussion on the validity of regex as email validation. Sometimes we have to validation email address and we can use email regex for that.In this real life example, I am trying to validate email addresses using java regular expression. Hi , email validation code present in this site is very nice and it is very useful to validate email address using regular expressions.