Hello, @bhogesh-waraprasad, @peterjones, @alan-kilborn and All,
From this discussion, after some tests, here is an other generic regex which selects all the contents of all lines containing, exactly, N to M times, the Char character, per line :
^([^Char\r\n]*)(Char(?1)){N,M}$ or ^([^Char\r\n]*)(Char(?1)){N}\R if you want to match their line-breaks, too
So, you can, either, mark, delete or replace these lines ;-))
Notes :
Char represents a single character, which is, usually, a non-word character ( A punctuation or symbol char )
N and M must be replaced with the appropriate integers ( For instance {2,4}, {5,}, {0,3}, {2} or even {0} )
So the search regex OP is ^([^;\r\n]*)(;(?1)){3}$
Best Regards,
guy038