Please help me with a pattern string so that it reads words without spaces.
return preg_replace_callback("#(<([A-Za-z]+)[>][>])(".$this -> keyword.")\b(.?)(<\/\2>)*#si",array(&$this, 'highlighter'), $text);
For example
$search_string = "This is a PHP Search Forum";
$key="For"
The $key should be able to find the "For", but the above pattern doesn't find that. Please help!
Thanks a lot in advance,
Paddy