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 ➜ finding last word in a trigger capture

finding last word in a trigger capture

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


Posted by Lilbopeep   USA  (42 posts)  Bio
Date Wed 06 Jun 2012 02:50 AM (UTC)
Message
if I am capturing strings of unknown length, but I always know the last word is the word I need, how can I best capture that to be used in a trigger?


,.~`'~.,Dance Magic Dance,.~`'~.,
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #1 on Wed 06 Jun 2012 01:16 PM (UTC)
Message
Presumably a regular expression like this

^.*?(\w+)$

or maybe

^.*?([^ ]+)$

or even just
([^\s]+)$

https://github.com/fiendish/aardwolfclientpackage
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.


9,164 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.