RE: if regex
| From: | Gregor Fajdiga | Date: | Tue, 09 Oct 2001 09:57:13 +0000 |
| Subject: | RE: if regex | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1631@lists.php.net to get a copy of this message | ||
sorry me, but an simple example would do. i can hardly help myself with that.
thanks,
gregor. ^o^
> In smarty.addons
>
> /*======================================================================*\
> Function: smarty_mod_regex_replace
> Purpose: regular epxression search/replace
> \*======================================================================*/
> function smarty_mod_regex_replace($string, $search, $replace)
> {
> return preg_replace($search, $replace, $string);
> }
>
> ;))
>
>
>
> hi!
>
> is there any undocumented feature to have regex within smarty's
> template. it would be especially useful in combination with if
> statement. in other words - if statement is almost unusable
> without regex.
>
> by the way, Smarty is very cool.
>
>
> have a nice day,
>
>
> gregor. ^_^
>
> ---
> You are currently subscribed to smarty as: arnaud.limbourg@cegetel.fr
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
>
> ---
> You are currently subscribed to smarty as: Gregor.Fajdiga@select-tech.si
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/