How do I create syntax highlighting for exact matches?

Question
I am trying to create syntax highlighting for EXACT matches in Xshell 6. If I want to Highlight the keyword ‘DOWN’ so I create this keyword in Highlight Sets, but it is not an exact match. I try to use regular expression ^DOWN$, but that doesn’t work either.

How do I create exact match syntax highlighting?

Answer:
Try exact matching of regular expressions. The following keyword in the "keyword to highlight" field would work.

\bDOWN\b

Make sure to check the Regular Expression checkbox.

Xshell's highlight system uses the Perl compatible DEELX engine. With this information, you can find several resources for detailed usage of our highlight set feature.