I dunno man. I'd much rather see a well understood vetted email validation(or whatever )copied from stack overflow than some thrown together hack in production code.
being able to look things up is a different skill than being able to understand and properly apply what you looked up. Or being able to understand what you are looking up and why.
(Disclaimer: I completed an internship at Amazon and accepted a second internship)