Macro Script OutputBar RegEx – EmEditor (Text Editor) https://www.emeditor.com Best Text Editor, Code Editor, CSV Editor, Large File Viewer for Windows (Free versions available) Fri, 26 Apr 2013 11:08:29 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 regex find count https://www.emeditor.com/forums/topic/regex-find-count/ Fri, 26 Apr 2013 11:08:29 +0000 var strAnswer = prompt( "find waht ?", "w+" ); var count=0; while ( document.selection.Find( strAnswer, eeFindNext | eeFindReplaceRegExp) ) { count++; } OutputBar.Clear(); OutputBar.writeln( "find count: "+count ); OutputBar.Visible = true; OutputBar.SetFocus();

serach document by regex which you input,find and print match counts

]]>