Re: [SMARTY] prefilter problems. More INFO (correction)
| From: | Joe Rice | Date: | Sun, 14 Jul 2002 18:41:26 +0000 |
| Subject: | Re: [SMARTY] prefilter problems. More INFO (correction) | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5305@lists.php.net to get a copy of this message | ||
Oscar Fernandez Sierra(oscar@el-mundo.net)@Sun, Jul 14, 2002 at 05:35:53PM +0200:
> $source = preg_replace("/<a href=.*?>/","",$source); # Non greedy
> match: .*?
thanks for pointing this out. i'm about the furthest thing from a
regex guru.
> # Its is better change the delimiters to # instead of /, so you don't have
> # to escape the "/" in </xxxx> tags, URLs, etc.
i'm sure how to change the delimiters is in the php manual, i'll look before i ask.
thanks again,
joe