Check if string contains item from array

Hi , i have string as abc =“hey your funding is done”
and array as {“funding”,“money”,“new”}

so there are many items in array so i want to check if my string abc contains item from the array. So even if 1 item matches it should go forward .Also string will vary everytime.

How can it be done?

Thanks
Mohini

1 Like

Try this:

// seach for multiple string values in a text

values = string {“funding”,“money”,“new”}

text = “abced money”

isFound = values.Any(function(x) text.Contains(x))

5 Likes

Thanks a lot! Working

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