By default, . matches any character except a newline.  The /s modifier
allows . to match newlines:

[% newString = customBlock.replace("(?is:<customTag>.*?</customTag>)","") %]

Ronald



On Mon, Jul 1, 2013 at 8:25 PM, Summer <crazysummer2...@yahoo.com> wrote:

> Hey All,
>
> I have some template code and I created some custom html tags - but I
> could use comments too I imagine. Anyways, I can't for the life of me get
> this to work..
>
> I want to omit the tags and everything in between.
>
>
> [% customBlock = BLOCK;
> '<customTag>';
> A BUNCH OF TT STUFF
> '</customTag>'
> %]
>
> [%
> newString = customBLOCK.replace("(?i:<customTag>[.*?]</customTag>)","");
> %]
>
> [%
> newString = customBLOCK.replace("(?i:<customTag>[.*]</customTag>)","");
> %]
>
> [%
> newString = customBLOCK.replace("(?i:<customTag>[.]*</customTag>)","");
> %]
>
> tried a few more things too.. any ideas?
>
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates
>
>


-- 
*Ronald J Kimball*
Senior Developer
 - www.snapapp.com | Facebook <http://www.facebook.com/snapapp> *|*
Twitter<http://www.twitter.com/snap_app>
_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to