Register forum user name Search FAQ

Gammon Forum

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 ➜ Suggestions ➜ Two suggestions

Two suggestions

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


Posted by Waps   (2 posts)  Bio
Date Sun 21 Jun 2020 12:26 AM (UTC)
Message
- A find next button in the CTL+F search interface

- Can a trigger with * at start end end still match if the text is actually not preceded by anything?

For example...

Trigger for "*You find a potion*"

Would still work even if the MUD says

You find a potion

As opposed only when there is a character before "Y"

It's possible I'm misunderstanding something. But just wanted to share. I searched but didn't find; likely some poor terminology above, I admit.

Thanks
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 21 Jun 2020 04:33 AM (UTC)
Message
Quote:

- A find next button in the CTL+F search interface


Shift+Ctrl+F finds the next occurrence.

Quote:

- Can a trigger with * at start end end still match if the text is actually not preceded by anything?


Yes. The "*" in a non-regexp trigger is the same as ".*" in a regular expression which matches "zero or more of any character" so therefore it matches "no text" as well.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Waps   (2 posts)  Bio
Date Reply #2 on Sun 21 Jun 2020 12:23 PM (UTC)
Message
Thank you!
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.


13,259 views.

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

Go to topic:           Search the forum


[Go to top] top

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