php regexp question
| From: | cpaul | Date: | Tue, 25 Mar 2003 08:15:54 +0000 |
| Subject: | php regexp question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140925@lists.php.net to get a copy of this message | ||
hi
i've made a small php site that is searching against french documents stored
in a mysql database.
when it comes to rendering search results, the client has asked if the words
that were searched for can be highlighted.
"no problem!" i thought. just do a regexp replace and wrap a <b> tag around
the matching terms. then i realised that the following would not produce
a match:
$string = "Françoise";
echo preg_match("/francoise/i",$string);
so my question.... since mysql managed to produce a match here, is there
perhaps a php regexp modifier that (maybe) knows how to make this match?
thanks