Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Sun Mar 24, 2002 1:05 am
capture question |
More important than the list you're trying to capture is what precedes the list, so we know when to start capturing, and what immediately follows the list, so we know when to stop capturing. Once we've identified that you can do something along the lines of this:
#TR {Text that appears immediately before the inventory list.} {#VAR myInventory "";#T+ getInventory}
#CLASS {getInventory}
#TR {^(*)$} {#VAR myInventory %additem("%1",@myInventory)}
#TR {Text that appears immediately after the inventory list.} {#T- getInventory}
#CLASS 0
You can use a blank line to indicate the end of the list with the pattern {^$}.
Troubadour |
|