Hi,
I have an htable containing some black list words (i.e. user IDs or phone models). To find matches of the words in every message I use the following script:
sht_iterator_start("i1", "black_list");
while(sht_iterator_next("i1")) {
if ( search($shtitval(i1)) ) {
}
}
sht_iterator_end("i1");
How can I modify search($shtitval(i1)) to get case insensitive matching?
The example below does not work:
sht_iterator_start("i1", "black_list");
while(sht_iterator_next("i1")) {
$var(re) = $shtitval(i1) + "/i";
if ( search($var(re)) ) {
}
}
sht_iterator_end("i1");
Other possible modifications of $var(re) aren't working too.
Thanks,
Andrey