Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

596.Count and statistics -- How to count the number of words that start with "ea" in a text file?

User: editor -- 2010-08-24          << 595  597 >>
Hits: 3323
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


Similar Examples:
How to count the number of words that ended with "ing" in a text file? (86%)
How to count the number of words that started with "en"? (83%)
How to count number of words appeared in a text file? (82%)
How to count the number of words for many files and append result to each file? (69%)
How to extract all numbers that are greater than 60 in a text file? (67%)
How to count number of digits(0-9) in a text file? (67%)
How to count the number of records for each month in a web log file? (65%)
How to count how many word(non-symbol) characters in a text file? (64%)

Check Demo of Count and statistics
Keywords:
boundary  pattern counter  counter  ies  led  ignore case  how to count the number of w  statistics  statist  count and statistics  words that start with a statistics  statistics of number of words  count the number of words in  statistics words in a text  words statistics in text file  words statistics in text  count start  pattern word counter