I am working with XML on an android app that sometimes leaves sentences bumped up against each other.
Like: First sentence.Another sentence
I know I need to use [a-z]
(lowercase letters), [A-Z]
(uppercase letters), and all digits ([0-9]?
) to search before and after the period, and then add a space after the period.
Maybe something like:
myString = myString.replaceAll("(\\p{Ll})(\\p{Lu})", "$1 $2");
My searches and efforts have been useless so far, so any and all help is welcomed. Thanks