mail] PHP/shell script]

Jason Clinton me at jasonclinton.com
Fri Aug 15 22:13:55 CDT 2003


Gerald Combs wrote:

>According to RFC 2822 (and 822 before it),
>
>  "I'm amazed; lots can go here!!!~`!@#$%^&*()_+=-.,<>:][{}"@[10.1.1.1]
>
>is a valid email address.  Kinda hard to parse or apply simple regexps to.
>
Lemme try!

("[^"]*"|[-A-Za-z0-9]*)@([-A-Za-z0-9].){3}[-A-Za-z0-9]*

I'm reading Mastering Regular Expressions so I thought would be fun to
give it a crack. Am I right?

--
Just my three trits. GPG Finger Print:
7A81 0A2F 1ABE DC38 DABC  7C22 B2EE 2304 4A89 46BF





More information about the Kclug mailing list