Quote:
Originally Posted by BirdOPrey5
Sorry, am not able to test or fix it for non-English characters.
Removing htmlspecialcharacters may be causing the issue with the tags, but if you want to try a new custom regex try:
Code:
</b></a>|</font></a>|</b></font></a>|</font></b></a>|</c>|</b>|</i>|</a>|
However I don't know if it will work.
The default to go back to if it doesn't work is:
Code:
</b></a>|</font></a>|</b></font></a>|</font></b></a>|</c>|
|
Thanks, It worked. Not sure what "</c>" stands for though...
I fixed the problem with Turkish characters.
Added this function:
PHP Code:
function bop5htmlspecialchars ($t){ $find[0] = '<'; $find[1] = '>'; $replace[0] = '<'; $replace[1] = '>'; return str_replace ($find, $replace, $t);}
Replaced the related line with this:
PHP Code:
$bopfind = preg_quote(bop5htmlspecialchars($bopfind));
And replaced the $bopwd with this in the regex:
PHP Code:
(?<=^|\PL)('.$bopfind.')(?=\PL|$)
Now "Match Whole Words Only" works for words beginning and ending with Turkish characters.
I'm currently using the CSV file and I will have about 200-250 words when I am done with the full list. xCache and VB Optimise are enabled, did not notice any performance issues so far (with 57 words). Do you think using the admincp option is faster?