Find text in a string
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Hi, I'm building a text file filter. I need to verify if a string is part of another string, for example: I wanto to find if the word "text" is part of a string. I'm writing a class inherited by String class...is it the correct choice or already exists a class to do this? Sorry for my bad english;P
-
Hi, I'm building a text file filter. I need to verify if a string is part of another string, for example: I wanto to find if the word "text" is part of a string. I'm writing a class inherited by String class...is it the correct choice or already exists a class to do this? Sorry for my bad english;P
-
string myString = "Hello Text World"; int idx = myString.IndexOf("Text"); bool myStringContainsText = (idx>-1);
....I'm a stupid!!! thanks!!!