Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Espanol
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Espanol section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 15th, 2005, 09:14 AM
Authorized User
Join Date: Dec 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to inderjeet_79
Default How to validate the format of Email using JAVA

Please tell me how to validate the format of Email using JAVA.


Old September 26th, 2005, 10:45 PM
Registered User
Join Date: Apr 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Indrajeet,
   I hope this will be useful for u.

String s=indra@yahoo.com
    //In this u can check at whoch place '.' needed.
    //Code,If correct.

Old June 16th, 2006, 08:24 AM
Authorized User
Join Date: Jun 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts

The method that u showed is the brute force way to do it . The most suitable thing to do is the use of the "Regex" package in java. Then u could go ahead and use regular expressions . If u want i could give u some samples for the same .

Similar Threads
Thread Thread Starter Forum Replies Last Post
validate email address dartcoach Javascript 0 April 28th, 2008 12:58 PM
Validate date format is correct gayatrikeshkamat VB How-To 0 April 4th, 2006 07:48 AM
Validate Email address richardtr BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 6 November 23rd, 2004 01:45 PM
Email Validate nskannan2007@yahoo.com Javascript How-To 3 July 3rd, 2003 11:46 PM
Email Validate nskannan2007@yahoo.com HTML Code Clinic 3 June 9th, 2003 10:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.