How to get specific value from given string/input

Hi @Nisha_K21

You can use below approach
strYourInput = “My email ID is abc@gmail.com
strOutput = System.Text.RegularExpressions.Regex.Match(strYourInput, “[a-zA-Z0-9._%±]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}”).Value
This will give you the output as abc@gmail.com

1 Like