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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  * escape

* escape

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


Posted by Artel   USA  (65 posts)  [Biography] bio
Date Fri 16 Jul 2004 08:22 PM (UTC)
Message
i have a trigger to respond to a message:

*** Example! (message) ***
Send: nobletalk blah blah

i tried ^*** Example! (message) ***$ and I got an error, so I put backslashes in: ^\*\*\* Example! (message) \*\*\*$

Nothing happens..
Are the parentheses or exclaimation marks causing this? Or is the * off?

Artel.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #1 on Fri 16 Jul 2004 09:30 PM (UTC)
Message
This was recently discussed. See:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4440

That should help.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Artel   USA  (65 posts)  [Biography] bio
Date Reply #2 on Fri 16 Jul 2004 10:08 PM (UTC)
Message
as I understand, the \* is supposed to work? That's what help files and the forum says, but it's not working

Artel.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #3 on Fri 16 Jul 2004 10:18 PM (UTC)
Message
Yes.
The ONLY way to match an asterisk is with a regular expression. Which is a more powerful form of trigger. \ is an escape character, because in a regexp, * is something that means something.

so \* tells the regexp engine to not think of * as instructions, but as simple characters instead.

So youll need to have "regular expression" checked to use it.

Try...
^\*\*\* Example\! \(message\) \*\*\*$

Regexps are EXTREMELY fickle, you might have leading (or trailing) spaces or perhaps a second space in between message and the next asterisks, and that will throw off your trigger.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[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.


13,243 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 HostDash]