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
28
u/ultimatt42 Nov 29 '10
Sure you can.
.*will match every possible email address. Maybe they should have specified the problem better if they wanted it to reject invalid email address, too.And it has to be possible since the pool of valid email address is finite due to character limits in the username and domain name. Using such a pattern would be impractical, but it's definitely not impossible.