I gues this comes down to a simple yes or no really:
I have a basic PHP search mechansim using preg_replace() to match the submitted search text and display it as highlighted text on the results page thus:
$hilite = preg_replace("/($maintext)/ix","<strong class='hilite'>$maintext</strong>",$row->Name);
echo "<a href='blah.php'>$hilite</a>";
This works for single text-strings like: "computer" but not for multilples such as: "computer technicicans" is there a modifier or combination thereof that an be used with preg_replace() to match multiples separated by whitespace, commas etc OR if not should I create an array of search terms using explode() or similar and then rebuild the string somehow??
Suggestions please!!
Many thanks folks.