On Wed, 19 Feb 1997, Stan Ryckman wrote:
I think you're asking for something *extremely messy* in a regexp.
Consider you'll have to match:
johndoe(_at_)foo(_dot_)bar
John Doe<jdoe(_at_)foo(_dot_)bar>
jdoe(comment)@(anothercomment) foo (.bar( (fun yet?))) .(hi!)
(com)bar
"John (jdoe @ foo . bar )" <jdoe @ foo . bar > ( jdoe @ foo . bar)
(a) luser (b) @ (c) subdom (d) . (e) foo (f) . (g) bar (h)
but not:
"John (jdoe(_at_)foo(_dot_)bar )" <jdoe @ notfoo . bar > (
jdoe(_at_)foo(_dot_)bar)
Strange...here's my findings. This is according to a 4 page regex
written by Tom Christianson, author of Perl.
powergrid% rfc822.pl
johndoe(_at_)foo(_dot_)bar
** Above matches? Yes
John Doe<jdoe(_at_)foo(_dot_)bar>
** Above matches? Yes
jdoe(comment)@(anothercomment) foo (.bar( (fun yet?))) .(hi!) (com)bar
** Above matches? No
"John (jdoe @ foo . bar )" <jdoe @ foo . bar > ( jdoe @ foo . bar)
** Above matches? Yes
(a) luser (b) @ (c) subdom (d) . (e) foo (f) . (g) bar (h)
** Above matches? Yes
"John (jdoe(_at_)foo(_dot_)bar )" <jdoe @ notfoo . bar > (
jdoe(_at_)foo(_dot_)bar)
** Above matches? Yes
powergrid%
----------------------------------------------------------------------
Rob Perelman robp(_at_)eciti(_dot_)com http://www.eciti.com/robp/
San Diego Rocks sdrocks(_at_)eciti(_dot_)com http://www.eciti.com/sdrocks/
Alphabet Records alphabet(_at_)eciti(_dot_)com http://www.eciti.com/alphabet/
----------------------------------------------------------------------