|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Nick W Smarty Rookie
Joined: 23 May 2003 Posts: 22
|
Posted: Wed Oct 08, 2003 3:36 pm Post subject: Regex_replace with Arrays? |
|
|
Hi,
Is it possible to use regex_replace with arrays as with preg_replace?
I've tried assigning the two arrays and then doing it like this:
{$body|regex_replace:$search:$replace}
but that doesn't seem to work... anyone know how I can do it please?
Many thanks
Nick |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Oct 08, 2003 7:11 pm Post subject: |
|
|
This should work, but I didn't test it
{$search|@preg_replace:$replace:$body} |
|
Back to top |
|
Nick W Smarty Rookie
Joined: 23 May 2003 Posts: 22
|
Posted: Thu Oct 09, 2003 7:47 am Post subject: |
|
|
Thanks boots, have a link to the @ syntax? - I must have missed that....
Nick |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|