hi i want to extract only email address
“your input is arun@gmail.com, and the following email like rams@gmail.com and explain shaym@gmail.com”
hi i want to extract only email address
“your input is arun@gmail.com, and the following email like rams@gmail.com and explain shaym@gmail.com”
Use assign with below expression:
emails = System.Text.RegularExpressions.Regex.Matches(inputText, “\b[A-Z0-9._%±]+@[A-Z0-9.-]+.[A-Z]{2,}\b”, RegexOptions.IgnoreCase).Cast(Of Match).Select(Function(m) m.Value).ToList()
If helpful, mark as solution. Happy automation with UiPath
please try this regex ([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)
Also you have find matches activity where you can use it or use directly with regexexpressions
cheers
To extract email addresses from a text in UiPath:
Assign Activity:
inputText = "your input is arun@gmail.com, and the following email like rams@gmail.com and explain shaym@gmail.com"
Matches Activity:
inputText[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}emailMatches (IEnumerable)For Each Activity (to loop through emailMatches):
System.Text.RegularExpressions.Matchitem.Value to access each email.This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.