Check if keywords stored in array exists in array without for each

Hello!

I have a keywords I need to check it is stored in an array

keywords= {“Q1”,“Q15”}

I need to check if these keywords exists in a string. And that string is on array. Example:
Stocks = {“apple||Q31”,“apple||Q1”,“Banana||Q15”}

I usually use
keywords.Any(function(x) STRING.Contains(x)).ToString

anyway I can do this without using for each?

Hello @wonderingnoname

Is that a vb or c# project? You can use linq code to achieve this.

It’s a vb project

2 Likes

thanks peter!

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