User: editor -- 2011-06-08 << 794 796 >> |
Hits: 3300 |
Type: Count and statistics |
Search all Count and statistics examples |
Description: |
How to count how many english words has less than 5 letters in a text file? |
Input Sample: |
This is a sample text to count how many words are less than or greater than 5 letters |
Output Sample: |
less than 5 letters: 13 no less then 5 letters: 5 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Pattern Counter" menu 2. select "file/http" option, and select corresponding text file 3. click "Clear" button to clear default pattern 4. click "Add" button add following 2 patterns: Name1: Pattern1: Name2: Pattern2: 5. make sure Regular Exp option is selected. 6. click "Count", done. 7. click "Copy" to copy the data to clipboard. |
Screenshot 1: Pattern_Counter_Window |