Hi,
I am using preg_match with word boundry..
if (preg_match ("/\b$userkeyword\b/i", "PHP is the web scripting language of choice.")) {
print "A match was found.";
} else {
print "A match was not found.";
}
But in some cases it is doing partial matches alse. Words like crosess,bearings . it is doing partial match.if u search bearing,it searches bearings also.similarly if yu search cross, it searches crosses also.
What is going wrong.
Please suggest.....
Thanks