Trying to find the correct regular expression

Posted by JJTim on Sat 20 Jul 2019 04:53 PM — 2 posts, 10,063 views.

Germany #0
I'm trying to match the prompt info my client sends me:
e|[EXT=N,E,SE,S,W,NW HNG=100] 27/279h|279/279m
<trigger
enabled="y"
match="^(.*)\|\[EXT=(.+) HNG=(\d+)\] (\d+)\/(\d+)h\|(\d+)\/(\d+)m$"
regexp="y"
sequence="100"
omit_from_output="y"
>
</trigger>
I'm using Lua, MUSHclient version 5.05. Expected result is the quoted output (and similar output) to get gagged. But nothing happens.
Australia Forum Administrator #1
It worked when I tested it. Perhaps there is an extra space or something else at the end of the line in your output?