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
➜ Help with a regex trigger
|
Help with a regex trigger
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Shadoweave
(42 posts) Bio
|
| Date
| Wed 07 May 2008 06:37 AM (UTC) |
| Message
| I've been trying for hours to make ONE trigger that will match on these two messages:
^With a focused look, Rutharr strikes at you with a warrior's iron greatsword, and you partially parry the blow with an angelic battle hammer. --not newline here
and
^With a focused look, Rutharr strikes at you with a warrior's iron greatsword. --not newline here
I need a pattern that will allow me to store in a wildcard the weapon he is hitting me with (can be 16 different types of weapons, each with its own specific designs), but ignore the weapon I parried with (again, any other type of weapon).
Any suggestions? | | Top |
|
| Posted by
| Worstje
Netherlands (899 posts) Bio
|
| Date
| Reply #1 on Wed 07 May 2008 08:26 AM (UTC) Amended on Wed 07 May 2008 08:43 AM (UTC) by Worstje
|
| Message
| Shouldn't:
^With a focused look, Rutharr strikes at you with (.*?)(?:, and you partially parry the blow with (?:.*)\.|\.)
work?
Edit 1: Crap, missed last line. Give me a moment.
Edit 2: Fixed?
Edit 3: Nevermind, I typoed my test output. >_> To be continued.
Edit 3: Fixed! | | 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.
12,677 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top