Sunday, 25 August 2013

VB.Net string contains exact match

VB.Net string contains exact match

I'm wondering if there is a way to search for an exact text match in a
text box
for example
using "if textbox1.text.contains("Hello") then" works
however i only want it to search for text "Hello" and if i have 2 words
like this
HelloFriend Hello Friend
I only want it to find the word matching so the second statement Hello
Friend and not HelloFriend as this doesn't match the keyword.
Is this possible?

No comments:

Post a Comment