regular expression search to get the line count in a text file
Running the regular expression search:
\S+\s*$
. . . in a text editor like NotePad++ will generate a count of the number of non-empty lines in a text file. The number of hits will be shown in the results pane below the transcript.
![](https://static.wixstatic.com/media/af7fa4_ca73d8c7089f48eaa6a8619f660dfb13~mv2.png/v1/fill/w_49,h_47,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/af7fa4_ca73d8c7089f48eaa6a8619f660dfb13~mv2.png)
In order to get a count of the number of empty lines you can run this RegEx search: ^\s*$
![](https://static.wixstatic.com/media/af7fa4_bdd08b7ec98345dfb827b610530132d2~mv2.png/v1/fill/w_49,h_25,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/af7fa4_bdd08b7ec98345dfb827b610530132d2~mv2.png)
. . . but note that it will count consecutive lines with only whitespace as a single line.