以###1###开头, ###2###结尾的
String word = "adlsfjlsajflksadjlfdsajfljdfka";
String regex = "(s?)###1###.*?###2###";
Pattern p = Pattern.compile(regex);
String[] contents = p.split(word);
for(int i = 1 ; i<contents.length ;i++){ //i=1开始,去掉个""
System.out.println(contents[i]);
}
Matcher matcher = p.matcher(word);
while (matcher.find()) {
String title = matcher.group();
String substring = title.substring(13, title.length() - 9);
System.out.println(substring);
}