Extract email from a string

Hi @vaibhavrpa1

Welcome to Community

Check with the pattern below to extract email using regex!

([a-zA-Z0-9_-.]+)@([a-zA-Z0-9_-.]+)\b

System.Text.RegularExpression.Regex.Matches(YOurStringVar,"
([a-zA-Z0-9_-.]+)@([a-zA-Z0-9_-.]+)\b").Value

Reference Link below!

Regards

1 Like