How to fetch the first name only from email id?

I need to fetch the first name from the email ids.

Example- Input - rijuta.ghosh@abc.com

Output- rijuta

I have tried using split function, but how do I retrieve the first result obtained only?

Thanks for the help.

  Discussion posts and replies are publicly visible