There seems to be something wrong with triggers and colour-matching (or with my understanding of it).
Given the MUD output
| Georg Gast1, der Avalon-Besucher. [Foo] |
| Bengel Otto Ooops, der neutrale Mann [Bar] |
| Elfensproessling Eleila, die neutrale Elfe [Blork] |
I wanted a trigger to match the names (i.e. the bold stuff) in each line.
I tried
A)
<trigger
bold="y"
enabled="y"
group="test"
keep_evaluating="y"
make_italic="y"
match="([A-Z][a-z1-9]+),"
match_bold="y"
match_text_colour="y"
regexp="y"
send_to="2"
sequence="100"
text_colour="15"
>
<send>%1</send>
</trigger>
That's a straightforward trigger essentially with match="([A-Z][a-z]+)" and match_bold="y"
From the output and italicization, I conclude that
this matches on the first line:
Georg
Gast (of course without the '1')
Avalon
Besucher
Foo
although the latter three are not even near a bold char
(and only the first match gets sent to output).
And it matches nothing on subsequent lines.
B)
The same with match="([A-Z][a-z1-9]+),":
Matches
Gast1 (without 'Georg' of course)
Oops (without 'Otto')
Eleila
OK, at least now the subsequent lines are evaluated against the regexp.
C)
The same with match="([A-Z][a-z1-9 A-Z]+),"
or "([A-Z][\w ]+),"
This matches
Georg Gast1
on the first line and nothing on the other lines??
My version is 3.38.
Given the MUD output
| Georg Gast1, der Avalon-Besucher. [Foo] |
| Bengel Otto Ooops, der neutrale Mann [Bar] |
| Elfensproessling Eleila, die neutrale Elfe [Blork] |
I wanted a trigger to match the names (i.e. the bold stuff) in each line.
I tried
A)
<trigger
bold="y"
enabled="y"
group="test"
keep_evaluating="y"
make_italic="y"
match="([A-Z][a-z1-9]+),"
match_bold="y"
match_text_colour="y"
regexp="y"
send_to="2"
sequence="100"
text_colour="15"
>
<send>%1</send>
</trigger>
That's a straightforward trigger essentially with match="([A-Z][a-z]+)" and match_bold="y"
From the output and italicization, I conclude that
this matches on the first line:
Georg
Gast (of course without the '1')
Avalon
Besucher
Foo
although the latter three are not even near a bold char
(and only the first match gets sent to output).
And it matches nothing on subsequent lines.
B)
The same with match="([A-Z][a-z1-9]+),":
Matches
Gast1 (without 'Georg' of course)
Oops (without 'Otto')
Eleila
OK, at least now the subsequent lines are evaluated against the regexp.
C)
The same with match="([A-Z][a-z1-9 A-Z]+),"
or "([A-Z][\w ]+),"
This matches
Georg Gast1
on the first line and nothing on the other lines??
My version is 3.38.