Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Artel
USA (63 posts) bio
|
| Date |
Fri 16 Jul 2004 08:22 PM (UTC) [ quote
] |
| 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,867 posts) bio
Moderator |
| Date |
Reply #1 on Fri 16 Jul 2004 09:30 PM (UTC) [ quote
] |
| Message |
|
| Posted by |
Artel
USA (63 posts) bio
|
| Date |
Reply #2 on Fri 16 Jul 2004 10:08 PM (UTC) [ quote
] |
| 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) [ quote
] |
| 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.
1,929 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )