User: editor -- 2010-08-15 << 588 590 >> |
Hits: 3416 |
Type: Count and statistics |
Search all Count and statistics examples |
Description: |
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 Line3 |
Output Sample: |
there are 2 words that has 4 character |
Answer: |
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 |