I am trying to search a single whole word through a textbox. Say I search "me", I should find all occurrences of the word "me" in the text, but not "
Use the word boundary assertion \b:
\b
/\bme\b/