Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ How can I omit empty string from output?
|
How can I omit empty string from output?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Niko
(3 posts) 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. :( | | Top |
|
| Posted by
| Magnum
Canada (580 posts) 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) 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 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) 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 | | 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.
14,684 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top