Click here to Skip to main content
12,952,398 members (35,516 online)
Click here to Skip to main content


1 bookmarked
Posted 25 Oct 2011

Don't count spaces when counting words.

, 25 Oct 2011 CPOL
I also use a Regex expression to count words, which returns the same number of words as MS Word. I wrap the Regular Expression in a String extension method to make it easy to use.public static class StringExtensions{ /// /// WordCounts Regular Expression /// ...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior)
France France
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 25 Oct 2011
Article Copyright 2011 by Jacobs76
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid