manared
Well-known member
- Joined
- Jun 1, 2006
- Messages
- 84
- Programming Experience
- 1-3
I'm creating a web app in vb.net 2005. I have 2 variables, one is just a word (variable x) and the other is a phrase/sentence (variable y). I need to see if the variable x is found in variable y. But, say x is "free" and y is "I am freezing." So far, I've been trying to match these and it is true, but that is not what I want. Yes, "free" is in "freezing" but I want only the full word by itself. For example, this should come back as true ("This object is free") whereas this one should not ("I'm going to freeze"). Any ideas? Maybe with regular expressions or matching or parsing or anything like that? Thank you much!!