I was researching best possible way to check if a String
was a valid email Address. I am now fixated on two options, viz., using javax.mail.internet.InternetAddress
; or using Apache Commons EmailValidator
, which internally uses complicated regex parser.
I was wondering if there is any advantages on picking one over the other in terms of correctness, or is both just fine? I know for a fact that InternetAddress
doesn't handle non-ascii characters efficiently in some cases.