-
May 30th, 2012, 02:34 AM
#1
Counting words in each sentence using C#
Hello, just wondering how to count words up to a point (for example, a period)?
For example, given the string:
That was a fun movie. I want to watch it again. We should sometime.
What code would you need to count the words in each individual sentence (that is, 5, 6 then 3 using the above example string)?
Thank you, I've been looking for a solution to this problem but it's got the better of me
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|