2 ms·
Same here, and personally I don't see the justification for spending all those CPU cycles going through a massive regular expression such as this one. I'd rath
by sgt 14y ago
Same here, and personally I don't see the justification for spending all those CPU cycles going through a massive regular expression such as this one.
I'd rather put this on the client side (javascript), as a validation to make sure the user doesn't supply an invalid e-mail address by accident (i.e. for his own convenience and nothing else).
- blibble 14y agocompared to pushing the response back out to the client, the cost of matching against that regex is going to be insignificant, even with it being as monstrous as it is. (note that I'm not saying using that regex is a good idea!)