Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: Addressing Form Field Validation with Regular Expressions and JavaScript 1.2

irt.org | About | Feedback | 1516 [ previous next ]

Feedback on:
Addressing Form Field Validation with Regular Expressions and JavaScript 1.2

Sent by
Dave Habros on July 20, 2000 at 21:08:57:

Worth:
Worth reading

Comments:
expression that you have came up with got some minor glitches as it would alow email with numeric domain such as: me@me.1234

I took your expression a bit further and modified it to the following:
/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*((\.[A-Za-z][A-Za-z])|(\.[A-Za-z][A-Za-z][A-Za-z]))+$/

it will allow emails with 2/3 letter domain such as .com, .ca etc.



Other feedback on 'Addressing Form Field Validation with Regular Expressions and JavaScript 1.2' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.