Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: Addressing Form Field Validation with Regular Expressions and JavaScript 1.2, July 20, 2000 at 21:08:57:

You are here: 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

©2018 Martin Webb