That's why I wrote a page about regular expression email address validation.
@masklinn said:
@realmerlyn said:But those are flawed! They don't match valid RFC822/2822 email. Don't use them.On the other hand, RFC 822 and 2822 define many e-mail address schemes you're not likely to encounter (local network addresses and the likes). To validate e-mail addresses coming from the intarwebs, one only needs to match against a subset of the RFC822 address space.