Monday, February 2, 2015

Sub string from a word to another word

You could use the string.Contains method to determine whether a string contains a specific word:



string s = "My cat is missing";

if (s.Contains("cat")) {
//word was found...
}



Please remember to mark helpful posts as answer to close your threads.

No comments:

Post a Comment