I want to be able to check if certain words are part of a variable that can contain more than 1 word. In detail, I have a noise list that contains common words and I want to be able to check a query to see if it contains any of these noise words. How can I use rex to perform this check?
<$noiselist="[^\alnum]the[^\alnum]" "[^\alnum]a[^\alnum]">
<sum " %s " $query>
<rex $noiselist $ret>
<if $ret ne "">
has noise
</if>
or
<apicp keepnoise 1>
<$noiselist="(the,a)">
<if $query like $noiselist>
has noise
</if>
What are you going to do if do/don't find noise words in the query?