How would i convert this regex using TT replace?

Summer <crazysummer2004-/[email protected]> Tue, 7 Aug 2012 13:44:13 -0700 (PDT)
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
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