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

$1 and $2 not providing any output. it is giving blank output. My code is: $email = "old@oldone.com"; if ($email =~ /(^@+)@(.+)/) { #if ($email =~ /<(.+?)@(.+?)>/) { print "username is $1\n"; print "hostnmae is $2\n"; }
  • Comment on Re^2: How can I extract the username/domain?

Replies are listed 'Best First'.
Re^3: How can I extract the username/domain?
by Anonymous Monk on Jun 23, 2011 at 11:50 UTC