Hi all,
I am starting a new thread as the same thread is old enough. I have a requirement to validate another email addresses. I am using the following pattern to validate my email address which is working for most of the email addresses:-
static String EMAIL_MATCH_REG = "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";.
I want a pattern for these emails 1) !#$%%^&*()+@xxx.com, 2)
SSS_@xxx.com, not allowed _before @ symbol, and 3)
AAA@xxx.com_.net, subdomains should not allow end with a special character and must be with 2 - 4 characters.
Please guide me.
Thank you so much,
Naveen Katoch