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
➜ trigger retrieveal
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Neverwhere
USA (40 posts) Bio
|
| Date
| Tue 24 Jun 2003 07:20 AM (UTC) Amended on Tue 24 Jun 2003 07:28 AM (UTC) by Neverwhere
|
| Message
| hp: 1121(1175) sp: 474(474)
I have a trigger that retrieves the 1121 (or whatever is there) right now. I want to create a trigger that matches only the (1175) but is able to change if that number does.
((\w*)) wont work because there are alot of things that would match that (note the one after sp:). Any ideas? (reg expressions please) |
ChaosMUD: chaosmud.org:23
Always looking for new players/coders. Willing to train if your willing to lear. Contact Neverwhere or just mention that I sent you. | | Top |
|
| Posted by
| Bobble
Canada (76 posts) Bio
|
| Date
| Reply #1 on Tue 24 Jun 2003 04:18 PM (UTC) |
| Message
| hp\: \d*\((\d*)\)
I made that up on the fly, but I think it should match. Did you want the trigger to get both the 1121 and the 1175 within the same trigger?
hp\: (\d*)\((\d*)\)
Give it a whirl. |
Open the watch. | | Top |
|
| Posted by
| Neverwhere
USA (40 posts) Bio
|
| Date
| Reply #2 on Tue 24 Jun 2003 08:10 PM (UTC) |
| Message
| | thanks, i used hp: (\w*)((\w*)) and just sent %2 to the variable... |
ChaosMUD: chaosmud.org:23
Always looking for new players/coders. Willing to train if your willing to lear. Contact Neverwhere or just mention that I sent 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.
14,867 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top