If I had an email-

[email protected]

How would I split it so the end result would be

firstnam.lastname?

Thanks in advance everyone