I was asked by my peer that how you will look for last @if more than one
@` is present.
Example:
j@[email protected]@..coding.com
So it should display j@[email protected]
as username and ..coding.com
as domain name.
Is there any one liner regex in Perl to get the desired output?
Use Email::Address. These things are too hard for simple re's to do correctly. Oops, didn't read op close enough, but this code works for splitting emails.