Can you be more precise ?
I want to extract words which have colour code 15 in a specific place for an on text event
the line has multiple colour codes - I only want to match it if it is in a certain position which is found by filtering out brackets from $1
var %filter $replace($replace($1,],$chr(32)),[,$chr(32))
[text1][text2][ text3 ]
text3 and the brackets are always 15
text1 is always the same colour
text2 is various colours and sometimes 15
I actually use gettok to get text1 atm
I want to use gettok again to get text2 and then if it is in 15 echo it to an @window and if it is something else then just ignore it