Don Taylor [DT] wrote: DT> I'm trying to write my first regex to "pretty up" the print template DT> for an account. I want to add a list of attachments at the bottom of DT> the message, in the form
DT> Attachment 1 DT> Attachment 2 DT> ... DT> Attachment n I wrote this long ago and it's working fine for me. Create two quick templates and call the first one for attachments list: ----- [ at1 ] %IF:"%ATTACHMENTS"="<none>":"":"Attachments: %COMMENT='%ATTACHMENTS'%-%QINCLUDE='at2'"%- ----- ----- [ at2 ] %IF:"%SETPATTREGEXP='(?i)^.*?(;).*$'%REGEXPMATCH='%COMMENT'"=";":"%- %SETPATTREGEXP='(?i)^\s*(.*?)\s*;.*$'%REGEXPMATCH='%COMMENT' %COMMENT='%SETPATTREGEXP=""(?i)^.*?;\s*(.*)\s*$""%REGEXPMATCH=""%COMMENT""'%- %QINCLUDE='at2'":"%COMMENT%-%COMMENT=''"%- ----- -- Gru�, Matthias There are three kinds of lies: Lies, Damn Lies, and Statistics. ________________________________________________________ Current version is 1.61 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html

