Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 July 20th, 2008, 05:28 AM
Authorized User
Join Date: Aug 2006
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default multiple email validation (different format)

hello..i got some problem aout the email validation..
i got a text box, the user can search the email from the address book and then it will display the email address in tis way :
alice[alice@yahoo.com]. users also can type in thier prefer email like john@yahoo.com.

so, what i want to ask is, how can i validation the email in the text box which combine the format like below:


can u all guide me more? thank you.

Old July 22nd, 2008, 08:00 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post


check out the above URL, many types of Regular expression are available for Email validation. You might need to modify slightly.

- Rakesh
Old July 22nd, 2008, 08:06 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post

I am not good at regular expressions, but try the following


Its the simplest format!

Original reg. expression was


I tried to modify it slightly to match your requirement.
Somebody who is good at reg. exp. can update it to be more accurate :-)

- Rakesh

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation and format zone Excel VBA 2 August 7th, 2007 02:53 PM
email validation function keyvanjan ASP.NET 1.0 and 1.1 Basics 3 August 17th, 2006 05:30 PM
Format validation madhukp SQL Server 2000 2 March 31st, 2006 06:18 AM
Email validation problem mattastic Javascript How-To 1 May 19th, 2005 01:10 AM
email validation tysta JSP Basics 3 June 23rd, 2003 12:43 AM

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