[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  How can I omit empty string from output?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

How can I omit empty string from output?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Niko   (3 posts)  [Biography] bio
Date Mon 15 Apr 2002 01:13 PM (UTC)
Message
Please, show me the trigger that catch an empty string. The "^$" does not work. :(
[Go to top] top

Posted by Magnum   Canada  (580 posts)  [Biography] bio
Date Reply #1 on Mon 15 Apr 2002 06:55 PM (UTC)
Message
Just out of curiousity, you DID have "regular expression" checked, right?

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Mon 15 Apr 2002 10:13 PM (UTC)
Message
It worked for me.


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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Mon 15 Apr 2002 10:14 PM (UTC)
Message
Maybe the MUD is sending spaces, you could make the trigger:


Match on: ^[ ]*$
Regular expression: checked


The "[ ]*" says "match on zero or more spaces".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,676 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]