3 ms·
...and this is why you don't ask someone to write regex to match an e-mail address on an interview.
by seanp2k2 12y ago
...and this is why you don't ask someone to write regex to match an e-mail address on an interview.
- gmac 12y agoSurely it's exactly why you might ask that — admittedly as a semi-trick question, which you should probably only direct at experienced people who really ought to recognise it as such. Email validation is a problem with a lot of plausible answers — many of them wrong — so it has the potential to be quite a good discriminant (depending on whom you're trying to hire, of course).