Having an issue getting highlighting to work with a variable that has multiple values, although if I put the value of that variable directly into the regex it works.
Variable Contents:
This trigger does not work:
This trigger does work:
Now, to prove the variable is making it into the match I changed @target to have a single name and then it works (but it stops working when I put an additional value separated by a pipe in the variable).
Variable Contents:
<variable name="target">John|Bob|Jim|Freddy</variable>
This trigger does not work:
<trigger
custom_colour="2"
enabled="y"
expand_variables="y"
group="Highlighted Words"
ignore_case="y"
keep_evaluating="y"
match="\b(@target)\b"
regexp="y"
repeat="y"
send_to="12"
sequence="99"
other_text_colour="red"
>
This trigger does work:
<trigger
custom_colour="2"
enabled="y"
expand_variables="y"
group="Highlighted Words"
ignore_case="y"
keep_evaluating="y"
match="\b(John|Bob|Jim|Freddy)\b"
regexp="y"
repeat="y"
send_to="12"
sequence="99"
other_text_colour="red"
>
Now, to prove the variable is making it into the match I changed @target to have a single name and then it works (but it stops working when I put an additional value separated by a pipe in the variable).