 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
nrone Smarty n00b
Joined: 26 Apr 2012 Posts: 1
|
Posted: Thu Apr 26, 2012 11:58 am Post subject: preg_match in between |
|
|
Hi guys
I have a problem getting content out between 2 tags
[[VIDEO]]
My content goes here
[[/VIDEO]]
the reason I need to do this via smarty, is becurse I only have access to template files, with no php support, and 1 wysiwyg editor (But need to split them up in tabs)
I figured i chould use preg_match to get the content, but i had no luck
| Code: | {if preg_match_all('/VIDEO(.*)VIDEOSLUT/s', $Product.description, $test)}
{$test|@print_r}
{/if} |
So now i ask you, any ideas?
Thanks for taking your time at reading this
- Joachim |
|
| 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
|