Let's say I want to highlight the word "the" in the sentence: They went to the mall.
I would use the RegExp:
var find_the = /the/g;
However when I use this it highlights both the ('the' in they) and the word 'the'. So how would I form a RegExp that would only find the word "the" and not the letters in order "the"?