Register forum user name Search FAQ

Gammon Forum

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 ➜ Expand variable not working for branches in trigger bug

Expand variable not working for branches in trigger bug

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Roga   (7 posts)  Bio
Date Sat 05 Oct 2002 12:30 PM (UTC)
Message
Not sure this is a bug yet so didn't post it in the bug section. Also searched through several times and did not see it listed.

What's happening is that I have set variable testit to

(Noogie|Polk)

If I make a trigger with @testit and check Enabled, Regular Expression, and Expand Variables it does not catch Polk or Noogie when tested through the Trigger Test menu. It does catch "(Noogie|Polk)" (without the quotes). Now if I type in (Noogie|Polk) directly into the trigger and do not use the variable testit, it works fine and catches Noogie or Polk. I have tried many variations, including letting MushClient convert it to a regular expression and many formats on the @testit variable. Any suggestions as to what's going on?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 05 Oct 2002 10:34 PM (UTC)
Message
This is behaviour by design. It was deliberately done that way, so that if (for instance) the substitution string had special characters in it (eg. period, brackets, etc.) that would not corrupt the regular expression.

If you want to modify the regular expression itself (as opposed to substituting a simple name) you would need to do that in a script with addtrigger.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Roga   (7 posts)  Bio
Date Reply #2 on Sun 06 Oct 2002 03:12 AM (UTC)
Message
Ahh, thought I remembered reading that somewhere but couldn't locate it. Thank 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.


13,088 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.