J
Jazeker
Hello,
Been playing around with a regex that should help a substitute of part
of an html template. I can't seem to get it right though. Anyone sees
what I am doing wrong ? I might have been staring at it for too long
myself...
subsitute : $tmpl_cont =~ s/\[\[LIST\]\](.*)\[\[\/LIST\]\]/$token/g;
(the $tmpl_cont var holds a join of the template - I have checked that
already by printing it to the browser and inspecting the page source.
template = http://www.galleryscript.net/demo/layout/xlisttemplate.html
As I was not sure about the wildcard, I also tried :
subsitute : $tmpl_cont =~ s/\[\[LIST\]\]([.\n]*)\[\[\/LIST\]\]/$token/g;
Thanks for any help...
Been playing around with a regex that should help a substitute of part
of an html template. I can't seem to get it right though. Anyone sees
what I am doing wrong ? I might have been staring at it for too long
myself...
subsitute : $tmpl_cont =~ s/\[\[LIST\]\](.*)\[\[\/LIST\]\]/$token/g;
(the $tmpl_cont var holds a join of the template - I have checked that
already by printing it to the browser and inspecting the page source.
template = http://www.galleryscript.net/demo/layout/xlisttemplate.html
As I was not sure about the wildcard, I also tried :
subsitute : $tmpl_cont =~ s/\[\[LIST\]\]([.\n]*)\[\[\/LIST\]\]/$token/g;
Thanks for any help...