Hi Nick, hi list,

* Nick Danger (ND) writes:

[ pick out multiple info from an e-mail ]

ND> Just for my own curiosity, what if there were 3 or 4 instances?  Is
ND> there a logical progression?

There is even a better solution. See what I found in my inbox this
morning:

,-----
| Hi Carsten,
| 
| I was quickly browsing the archives for TBTECH and saw your reply to
| Nick Danger's question about multiple "Item" lines.  Why not use one of
| your nifty recursive templates to do the job for an arbitrary number of
| items?  (BTW, I'm not using TB at the moment, so this is untested.)
| 
| ===[QT: item_list]===
| %COMMENT="%TEXT"%-
| %QINCLUDE="item"%-
| ======
| 
| ===[QT: item]===
| %IF:"%-
| %-%-%SETPATTREGEXP='(?msi)^item'%-
| %-%-%REGEXPMATCH='%COMMENT'%-
| "<>"":"%-
| %-%-%SETPATTREGEXP='(?msi)^item:\s*(.*?)\s*\n'%-
| %-%-%REGEXPMATCH='%COMMENT'
| %-%-%COMMENT='%-
| %-%-%-%-%SETPATTREGEXP=_(?msi)^item:\s*.*?\s*\n(.*)_%-
| %-%-%-%-%REGEXPMATCH=_%COMMENT_'%-
| %-%-%QINCLUDE='item'%-
| ":"%-
| %-%-%COMMENT=''"
| ======
| 
| Have fun!
| 
| Januk Aggarwal
`-----

Untested, but working :)

-- 
Best regards, Carsten
(Januk gave his okay to forward this to TBTECH)
The Bat! (v1.60d) Business
Windows 2000 5.0 (Build 2195) Service Pack 2, PGP 0xe2d25323


______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to