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 about more than 14 wildcards for a trigger
how about more than 14 wildcards for a trigger
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Faolong
USA (28 posts) Bio
|
Date
| Tue 22 Oct 2002 05:20 PM (UTC) |
Message
| this is kinda weird to ask because who would be expecting a mud to have like 16 wildcards!!!! so i was just asking if it was possible to have like 16 or more wildcards for a trigger... and the wildcards array should work right because after the 9th (wildcards[8]), wildcards[9] will just give the trigger line match.... and anything after wildcards[9] is just undefined.... | Top |
|
Posted by
| Magnum
Canada (580 posts) Bio
|
Date
| Reply #1 on Wed 23 Oct 2002 01:43 AM (UTC) |
Message
| This situation is so rare, I think it's best that you just use the current workaround the few times you need to.
There was another thread on this, some time ago. I'm sorry, I don't recall the subject line or anything.
Currently, you can build multiple triggers. Each trigger will use regular expressions. Use ?: to indicate which expressions should be matched, but NOT returned as a wildcard. IE: You may match on the first 9, then use ?: on the rest. In your second trigger, you would use ?: on the first 9 elements, and then match normally on the rest.
Read "RegularExpressions.txt" in your MUSHclient directory for detailed instructions. |
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,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Wed 23 Oct 2002 03:20 AM (UTC) |
Message
| This post is pretty relevant: Doing your own regular expression matching.
It describes how you can take a trigger match and re-match inside it to pull out more than 10 wildcards. Using the method Magnum describes you can set up a regular expression with more than 10 wildcards (not all will be returned) and then re-match using the technique described above to get the values for all of them.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Vaejor
(120 posts) Bio
|
Date
| Reply #3 on Wed 23 Oct 2002 10:48 PM (UTC) |
Message
| |
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.
16,686 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top