in reply to Re: special handling with regular expressions
in thread special handling with regular expressions

Your regex rejects:
"Randal L. Schwartz"@vms-relay.stonehenge.comm
And if that was my legitmate email address because of the way my internal company mailing system was set up, you've now given me no opportunity to use your web site. You made two common mistakes in your regex: The proper answer here is to not make things up and use the FAQ answers. Don't just invent your own thing.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Re: special handling with regular expressions
by ysth (Canon) on May 10, 2004 at 16:25 UTC
    Given that this field is overloaded to take either a description or an email address, I have a feeling that the "correct" regexp is going to treat some things as email addresses that weren't intended as such. And it sounds as if the primary use of the field is for descriptions, so it may be wise to err the other way.

    Update: an example would be:

    I also notified the guys at <foo@example.com>