Re: [SMARTY] pattern matchin pproblem
| From: | Daniel Cummings | Date: | Wed, 12 May 2004 14:37:47 +0000 |
| Subject: | Re: [SMARTY] pattern matchin pproblem | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11381@lists.php.net to get a copy of this message | ||
On 5/12/04 10:34 AM, "pete M" <pmorgan@ukds.net> wrote:
> // $text = preg_replace("/($val)/i", $style . '$1' .
> '</b>', $text);
This is a PHP question.
The answer is right there in the code, commented out. The i switch tells
preg_replace to be caseless.
check out:
http://us3.php.net/manual/en/pcre.pattern.modifiers.php
dan