Hi
I have a string data in the below format
sairam9@gmail.com|Ram3@gmail.com|srilatha6@gmail.com|guru45@gmail.com
And i have a list of valid email address like below
1.sairam9@gmail.com
2.guru45@gmail.com
So i would like to check each email address whether it is there in the valid list and keep only that data
Output data should be as below
sairam9@gmail.com|guru45@gmail.com
I tried find and replace but it is taking longer time for processing the data
Can anyone of you suggest me the best practice so that i could achieve it