[thelist] regex in javascript

Jeff Howden jeff at jeffhowden.com
Wed Jul 16 12:52:09 CDT 2003


david,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: David Turner
>
> i was looking at a regex for a phone number in
> javascript, that was failing and somebody told me that
> he thought this was due to a bug in javascript in IE.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

let's see the code, examples of data that works correctly with the regex,
and examples of data that should work, but doesn't with the regex.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> does this sound possible?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

anything is possible.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> and if this is the case what do people do for checking
> forms? do you do all the form validation on the server?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

server-side validation is an absolute must.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> are there any links to sites with more info about this
> potentially very serious bug in ID. or have i been
> mis-informed, and it is safe to use javascript regex's
> for validating forms.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

need more data to confirm, but it sounds like old-fashioned fear-mongering
at this point.

.jeff

——————————————————————————————————————————————————————
Jeff Howden - Web Application Specialist
Résumé - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/




More information about the thelist mailing list