How to get all words of a string in c#?

Posted by Joseph Lafuente on Stack Overflow See other posts from Stack Overflow or by Joseph Lafuente
Published on 2011-02-11T15:04:45Z Indexed on 2011/02/11 15:25 UTC
Read the original article Hit count: 266

Filed under:
|

I have a paragraph in a single string and I'd like to get all the words in that paragraph.

My problem is that I don't want the suffixes words that end with punctuation marks such as (',','.',''','"',';',':','!','?') and /n /t etc.

I also don't want words with 's and 'm such as world's where it should only return world.

In the example he said. "My dog's bone, toy, are missing!"

the list should be: he said my dog bone toy are missing

© Stack Overflow or respective owner

Related posts about c#

Related posts about string