Re: How would i convert this regex using TT replace?
Finn Hakansson <finn.hakansson-SVY5Q1FbfBtWk0Htik3J/[email protected]> Tue, 07 Aug 2012 17:19:18 -0400
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
[% FILTER replace('(?:\r\n|\n|\r)', "<br />") %]
The stuff you want to substitute...
[% END %]
On 08/07/2012 04:44 PM, Summer wrote:
> Hello,
>
> I have this in javascript, but having issue converting it to be able
> to use with template toolkit replace method.
>
> js way:
> replace(/(\r\n|\n|\r)/gm,"<br />");
>
> template toolkit way?
>
>
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates