in reply to How can I extract the username and hostname/domain from e-mail addresses?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
(delete)Re: Answer: How can I extract the username/domain?
by fuzzysteve (Beadle) on Nov 21, 2001 at 06:20 UTC
    akk, my bad.
    /<(.+?)@(.+?)>/
    $1 should contain the user
    $2 should contain the domain