I'm trying to do highlight a set of words I have stored in a variable, but only highlight those words when they are situated close to specific other words/characters such as:
pets = cat|dog|fish
Example source:
My desired match/result:
What I've been getting:
I've been experimenting with different 'match' criteria such as:
I used the inbuilt hightlight text trigger generation and set it to variables and unticked ignore case.
But I'm just not having any luck, could anyone tell me where abouts I'm going wrong ?
pets = cat|dog|fish
Example source:
Quote:
Pet: cat
catnip
[ooc] example says, "Just gave my cat some tunafish, he loves it!"
Pet: cat
catnip
[ooc] example says, "Just gave my cat some tunafish, he loves it!"
My desired match/result:
Quote:
Pet: cat
catnip
[ooc] example says, "Just gave my cat some tunafish, he loves it!"
Pet: cat
catnip
[ooc] example says, "Just gave my cat some tunafish, he loves it!"
What I've been getting:
Quote:
Pet: cat
catnip
[ooc] example says, "Just gave my cat some tunafish, he loves it!"
Pet: cat
catnip
[ooc] example says, "Just gave my cat some tunafish, he loves it!"
I've been experimenting with different 'match' criteria such as:
\b@!pets\b
^Pet: @!pets\s*
I used the inbuilt hightlight text trigger generation and set it to variables and unticked ignore case.
<triggers>
<trigger
custom_colour="11"
enabled="y"
expand_variables="y"
keep_evaluating="y"
make_underline="y"
match="\b@!pets\b"
regexp="y"
repeat="y"
sequence="90"
>
</trigger>
</triggers>
But I'm just not having any luck, could anyone tell me where abouts I'm going wrong ?