Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: Tue Mar 02, 2004 9:56 am |
I know of two ways to capture multiple lines after a trigger. One way is to use the #COND command or set up a multi-state trigger. The other way is to use a trigger in a temporary or normally disabled class, you can turn a class on and off using #t+ and #t-. You can then trigger on an empty line using ^$ or your prompt, to end the sequence.
I would advise you to avoid using %*, when * or [a-zA-Z(etc.)] are sufficient. %* could capture semicolons, bracers, quotes and mess with your script, it leaves your script open to abuse, very special care has to be made to avoid that. |
|