Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

589.Count and statistics -- How to count the number of english words that has specified number of chars?

User: editor -- 2010-08-15          << 588  590 >>
Hits: 2447
Type: Count and statistics   
Search all Count and statistics examples
How to count the number of english words that has specified number of chars? 
There is an article with english words, how to count how many words has exactly 4 characters?
Input Sample:
This is line1 
This is line2 
Output Sample:
there are 2 words that has 4 character
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file 
2. open "Tools->Pattern Counter" menu 
* click "Clear" button to clear current pattern 
* click "Add" button,  
enter in "Name" field:  
enter in "Pattern" field:  
* click "OK" button 
* select option of "Regular Expression" 
3. click "Count", you can get the total number of 4 letter words.

Screenshot 1:  Pattern_Counter_Window

Similar Examples:
How to count the number of words that started with "en"? (64%)
How to extract all english words that preceded by multi-byte characters? (64%)
How to count the number of lines under each specified pattern? (62%)
How to count the number of words that ended with "ing" in a text file? (62%)
How to find out all lines that appeared specified number of times? (62%)
How to count the number of consecutive lines with specified pattern? (61%)
How to count the number of words that start with "ea" in a text file? (60%)
How to convert numbers into scientific format with specified spacing? (60%)

Check Demo of Count and statistics
exact  english word  english  field  current  total  pattern counter  counter  count how many  statistics  how to count number in english  count number in english  how to count the number in english  count how many characters in text  count how many characters  specified chars  select how many characters  count characters