This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Im using RE from jakarta to validation email address. Im now using this to validate my email addresses, based on the test its quite OK. Just want to check with you guys if this meets rfc822 or what am i missing. RE r = new RE("^[a-zA-Z0-9]*[\\w\\.\\w\\-\\w\\+]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.\\w\\-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$"); if (!r.match(email)) return false; else return true; Or are there any codes which is better for validating email address. thanks,