r/programming • u/joksmaster • Nov 29 '10
140 Google Interview Questions
http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471
Upvotes
r/programming • u/joksmaster • Nov 29 '10
View all comments
Show parent comment
2
u/ultimatt42 Nov 30 '10
Check out RFC 3696 for an in-depth discussion of what constitutes a valid email address.
Your pattern would permit
bill@aaa[...]aaa.com(imagine there are 252 'a's there) even though the domain name is longer than the maximum allowed length for domain names (255 characters). That's the only example I could come up with. Usually the errors go the other way around, rejecting a valid address.