[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Trouble capturing info

Trouble capturing info

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


Posted by Silencher   (55 posts)  [Biography] bio
Date Sun 08 Jul 2018 12:36 AM (UTC)

Amended on Sun 08 Jul 2018 06:02 AM (UTC) by Nick Gammon

Message

|  Buffed ( )( ) Armor XP |    01 |  02 / 03  | |



Above is a representation of a line I'm trying to catch.

I'm specifically trying to capture the '01' portion and I'm not really sure how to do it.

The white spaces between all of the above can vary, depending on the length of the numbers in '01', '02', '03'.

Can someone show me how I can easily capture '01'? I was thinking something like...


.*XP | * |*.


As the trigger string and use %2 for '01', but that doesn't seem to work correctly.
[Go to top] top

Posted by Nick Gammon   Australia  (22,985 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 08 Jul 2018 06:03 AM (UTC)
Message
Are these regular expressions? The *. at the end doesn't look right.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


7,779 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]