I'm trying to split a paragraph into sentences. At the moment I'm splitting by .
which works fine but I can't seem to get it to split correctly when there's either .
or ?
or !
So far my code is:
String[] sentences = everything.split("(?<=[a-z])\\.\\s+");
Thanks