Is there a way for regex to pick up text codes (bold, underline, colour, reverse) in an
on *:TEXT: event? For example, the following works:
on *:TEXT:/(a|b|c|d)/iS:#: /echo -a bla
But if I replace a,b,c and d with the codes for bold, underline, colour and reverse then the event no longer fires. I tried to prefix the characters with \ ie:
on *:TEXT:/(\|\|\|\)/iS:#: /echo -a bla
but this does not appear to work. Am I doing something wrong? Could I possibly embed a $chr() inside the match?
on *:TEXT:/($chr(2)|$chr(31)|$chr(22)|$chr(3))/iS:#: /echo -a bla
Am I missing something very obvious? Feel free to make a fool of me
.
Thanks.