Quote:
Originally Posted by coreys
Neither have I.
Also, what? I've seen much shorter regular expressions to match an email address, you must be mistaken.
Edit:
I just looked it up, you are way off. The regular expression to find an email address (may vary slightly between implementations) is:
NPC Code:
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
In this instance using grep
|
That technically doesn't match the RFC 2822 specifications for an e-mail address.
Anyways, like I said, 90% of people who use regex don't actually understand what the hell it does or how it works, even if they understand the syntax.
This results in a lot of copying-and-pasting into your codebase from other places, and therefore a lot of potential edge-cases where your script could grind to a halt.