1
Hello, I would like to validate a String in java received from an INPUT. This validation would be to determine whether the user actually typed a valid email in the following pattern:
"XXXXXXXX@YYYYYY.with" or "XXXXXXXX@YYYYYY.with.br"
Where [XXX.. and [YYY...] are valid characters and the total number of characters in the String does not exceed 50.
In my case when I arrive in the JAVA context I will already have the String filled with what the user typed.
Regex to validate email is more complicated than it seems. There’s too many rules and how much more precise is the regex, more complicated it gets (and the simpler, the greater the chance of false positives)
– hkotsubo