I have the following regular expression in a format validation function in C ++ using regex, but it is validating non-standard formats that I want.
b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}b\.[A-Z]{2,4}b
Email: [email protected] Valid
Email: [email protected] Valid
Email: [email protected] Valid (não pode validar)
Email: [email protected] Valid
Email: [email protected] Valid
Email: [email protected] Valid
Email: [email protected] Valid
Email: [email protected] Valid
Email: [email protected] Valid
Email: [email protected] Valid
Email: [email protected] Valid
The problem I want to emphasize is the regular expression would have to validate only formats like:
.com
.com.br
.net
.net.br
.org
.org.br
and formats such as:
@terra.com.br
@bol.com.br
@yahoo.com.br
@hotmail.com.br
@hotmail.com
ie the expression should not validate anything after .br