parser vs. regexp
| From: | Simon 'corecode' Schubert | Date: | Sat, 16 Mar 2002 13:47:17 +0000 |
| Subject: | parser vs. regexp | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3101@lists.php.net to get a copy of this message | ||
hello!
could it be that something like this doesn't work because of the parser:
{$foo|regex_replace:"/(\d{4})(\d{2})/":"\2.\1"}
it always tries to use a function called "2" ;]
i'll program an own modifier that does this, but... it's pretty ugly
that way.
cheerz
corecode
--
/"\ http://corecode.ath.cx/
\ /
\ ASCII Ribbon Campaign
/ \ Against HTML Mail and News
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]