|
-
Jan 3rd, 2002, 09:46 AM
#8
Frenzied Member
Originally posted by progressive
no it wont!
so long as the @ is followed any character and then a fullstop it will be happy  so it will gladly accept.
[email protected]dom.t9dgibberish
these are the only things you can be sure of in an email address it will contain a @ and a . so checking for anything else is pointless like checkking the number of occurences of characters and .
Uhm... you are contaminating Alex's mind.
First, the address I provided started at with an "f". It contained a tab character. Tabs are not allowed in email addresses. But, your RegEx happily matches tabs.
Second, TLDs do not have numbers in them. But your RegEx happily matches "t9d".
Third, the word "gibberish" was accidentally appended to an otherwise malformed address. Had it be appended to a legit address (such as [email protected]) it still would've been allowed to happily pass your RegEx.
Your expression lets entirely too much stuff in. You might as well let everything in and do no matching at all.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|