How to remove Duplicate emails when extract the text

Hi There,

Sample Input:-ABC@XYZ.com;AAA@ZZZ.com;ABC@XYZ.com;AAA@ZZZ.com

Need output like this
ABC@XYZ.com;AAA@ZZZ.com;

2 Likes

Hi @anbarasu.k,

Try this

InputVar.Split(";"c).Distinct

Cheers

1 Like

Hi @anbarasu.k

Adding to @Pradeep_Shiv answer

Try this
String.Join( β€œ;”,InputVar.Split(";"c).ToList().Distinct)

Regards,
Nived N
Happy Automation

1 Like

it’s Working fine. Thanks

1 Like

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