Hello, I have a string like: dns\.support.dnsbed.com I want to translate it to a regular email address: [email protected]
if ($string =~ /^(.*?)(?<!\\)\.(.*)$/) {
my $user = $1;
my $tld = $2;
return $user . '@'. $tld;
}
But this won't work correctly. I got:
[email protected]
Where do I get wrong? Thanks.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
