in reply to Searching for a specific pattern.
If you want to avoid that the "LX" etc. will match substrings of words, then yes, using word boundary markers is the way to go.