How to get only email id?

Hi Team,

I am getting my in Get Mail activity item.Sender.ToString as the below result i need just the mail like xyz.abc@fujitsu.com

Example output:
“abc, xyz” xyz.abc@info.com

Please let me know how to get

Thanks,
Sneha

Hi,
as much as i know it can be extracted by using Regex. if you know how to write RegEx it should be esy to extract the email only.

No i am not able to get the proper result using the regex could you please let me know the syntax with regex…
Thanks…

image

This is my format

@Snehamayi_Sneha Refer this Post

@Snehamayi_Sneha,
Please use Split condition as “@” and split the string.
String(0) = xyz.abc
String(1) = info.com
always.

@Snehamayi_Sneha

I hope I understood your requirement . Correct me if I’m wrong

“abc, xyz” xyz.abc@info.com form this you want only this" xyz.abc@fujitsu.com" right?

For that use below code in assign activity

system.Text.RegularExpressions.Regex.Match(your input variable,“(?<=<).*(?=>)”).ToString

1 Like

Thankyou so much for quick reply…

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.