Hi Dr.GAD, On Thursday, April 3, 2003 at 14:18:02 [GMT +0300], you wrote: DG> Is it possible to extract one line from text? Here is example text:
DG> sometext, sometext, sometext, bla-bla DG> sometext, sometext, sometext, bla-bla DG> Quantity: 1 DG> Tax: $0 DG> Total: $14.95 DG> sometext, sometext, sometext, bla-bla DG> sometext, sometext, sometext, bla-bla DG> As a result I want this: "Total: $14.95" DG> Or this one better: "Total: $14.95" Try this line in a template: Total: %REGEXPTEXT="(?im)^Total:\s+(\$\d+\.\d+)$" This solution assumes that there is no other line starting with "Total:" and ending in an amount like "$x.yy" with at least one whitespace character inbetween anywhere else in the message. -- Regards, Lars The Bat! 1.63 Beta/7 on Windows XP 5.1 Build 2600 ________________________________________________________ Current version is 1.61 | "Using TBTECH" information: http://www.silverstones.com/thebat/TBUDLInfo.html
