How can I split a multiline string by line using regex but ignore blank lines?

So I have the following string:

This is sentence one.
This is sentence two.
This is sentence three.
This is sentence four.

How can I use regex to split this string in 4 lines whilst ignoring the last line which is blank in this example?