How can I search for an exact match in a string? For example, If I had a string with this text:
label label: labels
And I search for label, I only want
It seems you've got a delimiter (crlf) between the words so you could include the delimiter as part of the search string.
If not then I'd go with Liviu's suggestion.