java对ckEditor编辑的内容进行分页
String content = gameInfo.getContent();//由于后台的分页格式在JAVA中获取不到,先替换。String patternStr = "(?is)<div style="page-break-after: always">(.*?)<span style="display: none"> </span></div>";Pattern p= Pattern.compile(patternStr); Matcher m=p.matcher(content);content=m.replaceAll("<div style="page-break-after: always"><span style="display: none"> </span></div>");//对内容进行分页String pattern = "<div style="page-break-after: always"><span style="display: none"> </span></div>";String[] contentSplit = content.split(pattern);