How to get email address without domain using regex

Hi @jrin3753

Welcome to community
Check this out

System.Text.RegularExpressions.Regex.Replace(yourString.Substring(0,yourString.IndexOf(“@”)),“[^A-Za-z0-9]”,“”)

1 Like