Feedback on: Addressing Form Field Validation with Regular Expressions and JavaScript 1.2, December 03, 2001 at 18:05:59:
You are here: irt.org | About | Feedback | 3393 [ previous next ]
Feedback on:
Addressing Form Field Validation with Regular Expressions and JavaScript 1.2
Sent by
Stefan Berglund on December 03, 2001 at 18:05:59:
Comments:
The emailchecking is just plain wrong!
First: You can not check that an address is correct except trying to send mail to it and wait for an answer.
Second: The code that checks for a syntactically correct mailaddress flags syntactically correct addresses as invalid, for example the common syntax local+tag@domain or the address *@domain.
As it is very complicated to make a 100% correct check, why not make a check that should pass all valid (except uucp-style) and some invalid ones as well, your MTA must do the check for real anyway, so:
^.*@[^.]+(\.[^.]+)+$
Or one that obeys the KISS-principle:
.+
Other feedback on 'Addressing Form Field Validation with Regular Expressions and JavaScript 1.2' - show all
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Ashish January 16, 2008 at 02:30:57
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - September 19, 2007 at 10:11:41
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Dick Curtis May 17, 2002 at 18:34:03
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Dick Curtis May 17, 2002 at 18:33:19
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Stefan Berglund December 03, 2001 at 18:05:59
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - frank koenen September 06, 2001 at 15:11:22
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - peter September 02, 2001 at 13:43:37
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Ian Anderson August 11, 2001 at 15:49:45
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Liam Morley April 21, 2001 at 00:17:04
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Joel Finkel February 21, 2001 at 00:41:52
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Suma Thomas August 10, 2000 at 10:44:31
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Suma Thomas August 10, 2000 at 10:42:13
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Dave Habros July 20, 2000 at 21:08:57
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Vlad Gertsen April 25, 2000 at 13:19:28
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Jimmy Devenport January 13, 2000 at 12:53:18
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Ed Bradburn November 25, 1999 at 07:53:26
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - David Swain November 02, 1999 at 10:26:31
- Addressing Form Field Validation with Regular Expressions and JavaScript 1.2 - Juergen Barthel July 06, 1999 at 07:50:48
©2018 Martin Webb