Get the x from a Any(Function(x) (string).Contains(x))

Hello there.

I have an array of strings and I have to check if a string value contains one of these items in the array, for example :

Found value.xaml (5.4 KB)

I would like to recuperate the “x” to use it for other activities.

How can I do it or is it possible?

Thank you in advance and have a good day.


have a look here:

the xMatches we got by a Linq:

(From x In arrKeywords
Where strText.toUpper.Contains(x.ToUpper)
Select x).toArray

the check if 1 or more Keywords are present we can do it with the count check.

Find starter help here:
Get_AllArrItems_ContainedInString.xaml (5.2 KB)

Good morning,

OK I used your example and it’s working perfectly.

Thank you very much for your help and have a good day.


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