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
➜ * escape
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Artel
USA (65 posts) 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. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Fri 16 Jul 2004 09:30 PM (UTC) |
Message
| |
Posted by
| Artel
USA (65 posts) 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. | Top |
|
Posted by
| Flannel
USA (1,230 posts) 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. | 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,812 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top