Search This Blog

Monday, September 7, 2009

Email Pattern match in JAVA

Simple code for Email pattern match using JAVA :

String email = "kapilgupta273@gmail.com";
Pattern pattern = Pattern.compile("([A-Za-z0-9])*([$^#%<>*'()&\"])");
if(pattern.matcher(email ))
return true;
else
return false;

No comments:

Post a Comment

Thanks for your comment, will revert as soon as we read it.

Popular Posts