I'm trying to split a string into "sentences" but I'm having an issue with trailing words. For example:
"This isn't cool. This doesn't work. This"
should split into
[This is cool., This doesn't work., This]
So far I've been using "[^\\.!?]*[\\.\\s!?]+"
but can't figure out how to adjust this for the trailing word since there is no terminating character and thus nothing to look for. Is there something I can add or do I need to adjust this completely?