Mail Messages From

I am trying to obtain just the mail address from this string

"UiPath" <>

I would like just the text between <>

as its in a for each loop ATM i have item.From.Tostring which gives me the whole row as above, I have narrowed it down to either a split of a sub string but to know avail

Hi @Jersey_Practical_Sho

See this example, with this Regex:

It should work, you can get it with a simple Assign activity:

yourNewString = System.Text.RegularExpressions.Regex.Match(inputString, "(?<=<).+(?=>)").ToString

Hello, you simply should be able to get the email by indicating “item.From.Address.ToString” instead of “item.From.ToString”.

Best regards,