Hello!
i need to search for multiple words into a string, a sort of bad words filter.
Instead of making a huge list of
and so on.
Is there any other way to accomplish this task like pass an array of items without all that OR conditions? the list is huge.
in php i would create an array and use strpos function for matching.
Thank you
i need to search for multiple words into a string, a sort of bad words filter.
Instead of making a huge list of
B4X:
If
thestring.contains("this phrase is banned") OR thestring.contains("dog") OR thestring.contains("cat") Then
'..
Is there any other way to accomplish this task like pass an array of items without all that OR conditions? the list is huge.
in php i would create an array and use strpos function for matching.
Thank you