|David loves to tell me how much a pain PCs are, so I figured I'd comment on this bug that I ran into on the mac today. Most of the questions people ask are a result of either general comuter idiocy (no offense, they admit it themselves) or people installing popup blockers and not catching on to how to disable them. Every once in a while, we get a real stumper involving bugs in the page. Such was the case today.
Alright, enough background info, now to the meat of what the Mac screwed up. The script was refusing any email with an underscore ('_') in it. In a validation script for the submission form, we had the following:
var reg =/^[a-zA-Z0-9][\w\.\-]*[a-zA-Z0-9]@[a-zA-Z0-9] [\w\.\-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/;
(all on one line, of course)
if (!reg.test(str)) // str is not a valid email...
In a nutshell, that says that the regular expression has to start with an alphanumeric character, followed by any number of alphanumeric plus '.','_', and '-'and then at least one alphanumeric before the '@' sign, followed again by alphanumeric, etc...
There's more to read. Read the extended entry.