RE: if regex

From: Date: Tue, 09 Oct 2001 09:32:49 +0000
Subject: RE: if regex
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1630@lists.php.net to get a copy of this message
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/

« previous php.smarty.general (#1630) next »