How do I get the number of lines before the blank line. For example:
This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph
The first set should count 3 lines and the second set counts 4 lines.
I have used Get-Content .\testing.txt | Measure-Object -line which returns the total number of line but that's not what I wanted.