Search a string in a paragraph
-
I think u didn't get my prob. correctly............ Actually i've a textbox(Multiline) in which i've to search a particular string Example:- this is a paragraph given below and i have to search a string "quick" then answer would be 4 The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U.
Hi, check this. http://www.codeproject.com/script/comments/forums.asp?msg=2325172&forumid=1649&mode=all&userid=3518080#xx2325172xx[^]
Thanks, Sun Rays To get something you must have to try once. My Articles
-
I think u didn't get my prob. correctly............ Actually i've a textbox(Multiline) in which i've to search a particular string Example:- this is a paragraph given below and i have to search a string "quick" then answer would be 4 The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U.
And it's a dodgy cross post as well.
Deja View - the feeling that you've seen this post before.
-
I think u didn't get my prob. correctly............ Actually i've a textbox(Multiline) in which i've to search a particular string Example:- this is a paragraph given below and i have to search a string "quick" then answer would be 4 The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U. The quick brown fox jumps over the little lazy dog.Hello How R U.
-
And it's a dodgy cross post as well.
Deja View - the feeling that you've seen this post before.
-
Get to solve ur problem. function wordCount(str) { var count = 0; var _arrWord = str.split(" "); for (i=0 ; i < _arrWord.length ; i++) { if (_arrWord[i] == "quick") count += 1; } alert("Total Word Count: " +count); } Devjit Das.
-
int num=0; //This line get the word to be searched string title=dt.Rows[0]["Title"].ToString(); //This line get a paragraph in which searchintg to be.. string content=dt.Rows[0]["Content"].ToString(); for(int i=0;i
-
so what's the problem convert that concept as where u like to u. i think it will work. Devjit Das.
-
No it's a dodgy ................ i think you didnt get the meaning of my question properly at all! Read the other part of this thread ????????????????????
The Knowledge wrote:
think you didnt get the meaning of my question properly at all!
I did. That's why I recognised it as a cross post. Please don't post the same question (or in this case part of a clarification) to multiple forums.
Deja View - the feeling that you've seen this post before.
-
I haven't check ur code.It is ur way to check ur code. we can provide only concept not the code. ok man. Devjit Das.