EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     How to search and count the occurence certain string in a file?
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
tungwaiyip
Posted on: 5/27/2010 10:31 am
Not too shy to talk
Joined: 12/8/2006
From:
Posts: 33
How to search and count the occurence certain string in a file?
There is an operation that I do frequently. I want to count the occurence of certain string or regex in a file. Is there an easy way to do this? Right now I use search and replace for this purpose. I click replace all with some dummy replacement. The count is shown in the status bar in the bottom. Then I undo the replacement after getting the count.

Is there an easier way than this? I'm using EmEditor v8 right now. And I want to upgrade to v10 as soon as it is available.

Thanks,

Wai Yip
Yutaka
Posted on: 5/27/2010 5:30 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: How to search and count the occurence certain string in a file?
Hello tungwaiyip,

In EmEditor Professional v10, there is a new check box called "Count Matches".

Also, in v8 or later, you can use the "Word Count" plug-in to count any words that match regular expressions.

Please let me know if you have further questions. Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文