public static void main(String[] args) {
String date = "20151101095440";
String reg = "(\\d{4})(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})";
date = date.replaceAll(reg, "$1-$2-$3 $4:$5:$6");
System.out.println(date);
}