Using contains() to filter arrays

Hello! I am trying to replicate the example from this post for the replace() function, in my case, it’s the contains() function. But it didn’t work for me.

Perhaps you could help me find where I am going wrong.

My goal is to filter all arrays if one of the values contains “trustpilot”. When I use the entire link for the contains() function, it works correctly. However, the problem is that I need to find all cases with this domain part.


Hi I don’t believe the contains() function allows regular expressions. Only replace() does allow regular expressions as the search string

You may want to use the Text Parser app and modules instead to search for strings to return boolean values.

2 Likes

@alex.newpath Thanks for the tip. You were right.
I used the same regex for replace() and it worked. So the problem is not in the regex but in the function

1 Like