skip to main
|
skip to sidebar
Rafi's Blogs
Wednesday, April 07, 2010
Java Email validation using Regex
public boolean isValidEmailAddress(String email) {
Pattern p = Pattern.compile("^[a-zA-Z][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$");
Matcher m = p.matcher(email);
return m.matches();
}
1 comment:
Syed Sibte Shah
said...
Hey I didn't know that you had a blog. Keep posting!
April 8, 2010 at 12:56:00 PM PDT
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2013
(1)
►
November
(1)
►
2011
(3)
►
September
(2)
►
May
(1)
▼
2010
(2)
▼
April
(2)
How to get Malaysian Driving License if you have P...
Java Email validation using Regex public boolean i...
►
2009
(1)
►
February
(1)
►
2008
(7)
►
October
(1)
►
September
(1)
►
August
(2)
►
July
(1)
►
June
(2)
►
2007
(1)
►
October
(1)
►
2006
(1)
►
February
(1)
►
2005
(3)
►
December
(2)
►
August
(1)
Links
EnterpriseDB
Mohammad Ali Jinnah University
Google News
About Me
Rafaqat Ali
View my complete profile
1 comment:
Hey I didn't know that you had a blog. Keep posting!
Post a Comment