I have an array of values like:
array ('hello world', 'foo', 'bar') -- terms here have only letters and one space at most
and some text like: 'foo hello-world hello1world'
and I would like to get back from the original array the values foo
and hello world
filtering out bar
.
Is there any way to get that with Postgres?
Best Answer
I would do something like this,
NOT word LIKE ANY()
Here is a demo of the helper function,
Then you can use
NOT word LIKE ANY()
. This shows what it would look like,