How to Identify and store data based on keywords from email id end

Hi Members,

I have to email ids which ends in different name like one is [
rathishk@verizon.com (Business)
rathish@oath.com (Supplemental)

How to store in email id’s in different variable based on Business and Supplemental. Also the while storing the email id we have to remove Business and Supplemental from the variables before saving.

I have attached source image for understanding.

Please let me know any solution for this work.

supplimental
business

@rathishseng

You can use this

System.Text.Regularexpressions.Regex.Match("YourString",".*(?=\(Supplemental\))").Value

Replace with business ofr getting business email

Cheers
image

1 Like

Thankyou and let me check and let you know with screen shot. :blush:

1 Like

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