As I posted on the original Post ( here ), the following code:
String input = "myValue.Folder.FolderCentury"; String regex = "(?!(.+\\.))\\."; String[] result=input.split(regex); System.out.println("result: "+Arrays.toString(result));
Produces the required output (an array with two values):
result: [myValue.Folder, FolderCentury]
source share