I need to split a string by \.\s but leave the . appended to the array element.
Taking this string as a test, Lorem Ipusm. Excepteur sint occaecat. I need the output array to be:
[0] => Lorem Ipsum.
[1] => Excepteur sint occaecat.
See how the . still remains intact?
I believe I need a lookbehind regex because /\.(?=\s)*/ doesn't work, instead the . ends up at the beginning of each sentence after it.