| User: editor -- 2010-02-06 |
| Hits: 24 |
| Type: Character count |
| Search all Character count examples |
| Description: |
| How to add a number in each line indicating number of words in this line? |
| Input Sample: |
| Character count Batch download Advanced search and replace Batch file rename |
| Output Sample: |
| (2) Character count (2) Batch download (4) Advanced search and replace (3) Batch file rename |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| 1. ctrl-o open source text file 2. ctrl-h open 'replace' dialog * set 'Replace Unit' to 'Line' * set 'Replace with pattern' to: 3. click 'Replace', done 4. ctrl-s save to file Note: count(string, pattern) return the number of pattern in the string. |
| Download Script: |
| scripts/415.rst.zip |
| Check Demo of Character count |