User: editor -- 2010-08-24 << 595 597 >> |
Hits: 3528 |
Type: Count and statistics |
Search all Count and statistics examples |
Description: |
How to count the number of words that start with "ea" in a text file? |
Input Sample: |
hear eating Easy hello |
Output Sample: |
number that start with ea is 2 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open file 2. open 'Tools->Pattern counter' * click "Clear" button * click "Add", and filled following entries: Name: Pattern: Note: \b means word boundary * click "ok" * check options of "ignore cases" and "regular expression" 3. click "Count", you can get the number 4. select the item and click "Detail", you can get details items of your pattern. |
Screenshot 1: Pattern_Counter_Window |