Hi
I'm trying to catch name from this command and output:
I want to catch the number of gqs (so the %1) and the name. The name position varies depending on the *AFK*, Helper and so on before the name. So it could be %2 or %3 or even %4. I catch only %2 and %3. It is enough for me. But I have problems with it.
The trigger regexp is like this:
Why is the %3 empty? I would expect the rest of the line behind the %2 to be in %3.
What somehow works for me is this match:
But it is not 100% what I want.
What exactly I want to achieve is this:
What do I do wrong?
Thanks
-Mahony
[EDIT]
Formatting fixed, code tags added, forum codes escaped.
I'm trying to catch name from this command and output:
swho 11 20 60
[ 26 Eldar P+3] [ 819 ] Mahony (^\Rhabdo/^)
[ 61 Diva T+5] [ 708 ] *AFK* Trachx <(=Watchmen=)>
[ 54 Eldar M+5] [ 222 ] [Advisor] Nienna [C]
[ 54 Eldar M+5] [ 221 ] *AFK* [Advisor] Xyz [C]
[ 22 Giant W+7] [ 4 ] (HARDCORE) Nightbird /|\Druid/|\
[ 25 Vamp H+2] [ 3 ] (Linkdead) Izabella
I want to catch the number of gqs (so the %1) and the name. The name position varies depending on the *AFK*, Helper and so on before the name. So it could be %2 or %3 or even %4. I catch only %2 and %3. It is enough for me. But I have problems with it.
The trigger regexp is like this:
match="^\[.{15}\] \[\s+(\d+)\s+\] (.*?) (.*?)"
[ 26 Eldar P+3] [ 819 ] Mahony (^\Rhabdo/^)
%2 is Mahony
%3 is
[ 51 Vamp P+6] [ 576 ] *AFK* Zetkax
%2 is *AFK*
%3 is
[ 54 Eldar M+5] [ 222 ] [Advisor] Nienna [C]
%2 is [Advisor]
%3 is
Why is the %3 empty? I would expect the rest of the line behind the %2 to be in %3.
What somehow works for me is this match:
match="^\[.{15}\] \[\s+(\d+)\s+\] (.*) (.*)"
[ 26 Eldar P+3] [ 819 ] Mahony (^\Rhabdo/^)
%2 is Mahony
%3 is (^\Rhabdo/^)
[ 61 Diva T+5] [ 708 ] *AFK* Trachx <(=Watchmen=)>
%2 is *AFK* Trachx
%3 is <(=Watchmen=)>
But it is not 100% what I want.
What exactly I want to achieve is this:
[ 61 Diva T+5] [ 708 ] *AFK* Trachx <(=Watchmen=)>
%2 is *AFK*
%3 is Trachx
What do I do wrong?
Thanks
-Mahony
[EDIT]
Formatting fixed, code tags added, forum codes escaped.