Please, show me the trigger that catch an empty string. The "^$" does not work. :(
How can I omit empty string from output?
Posted by Niko on Mon 15 Apr 2002 01:13 PM — 4 posts, 15,481 views.
Just out of curiousity, you DID have "regular expression" checked, right?
It worked for me.
Here is a test ...
The blank line after the exits triggered the trigger, which displayed the message on the screen.
By checking "omit from output" the line is omitted.
Trigger: ^$
Regular expression: checked
Send: -->Blank line detected<--
Send to: Output
Here is a test ...
look
A Stone Corridor
This is the stage of your training where you may begin to feel pangs of hunger and a parched throat. In other words, you need food and drink. To the east is the Darkhaven Supply Store. You may purchase water and some meat. Once you have eaten and drunk, you will be ready to proceed north.
Exits: north east.
-->Blank line detected<--
<3000hp 5000m 3100mv>
The blank line after the exits triggered the trigger, which displayed the message on the screen.
By checking "omit from output" the line is omitted.
Maybe the MUD is sending spaces, you could make the trigger:
The "[ ]*" says "match on zero or more spaces".
Match on: ^[ ]*$
Regular expression: checked
The "[ ]*" says "match on zero or more spaces".