---
title: "java对ckEditor编辑的内容进行分页"
author: "liuna2011"
date: "2011-07-19T15:54:18Z"
tags: []
categories: ["Web前端"]
slug: "java-ckeditor"
draft: false
lastmod: "2011-08-05T19:45:41Z"
id: 1128065
url: "https://liuna2011.iteye.com/blog/1128065"
---

\[code="java"]String content = gameInfo.getContent(); //由于后台的分页格式在JAVA中获取不到，先替换。 String patternStr = "(?is)

(.\*?) 

"; Pattern p= Pattern.compile(patternStr); Matcher m=p.matcher(content); content=m.replaceAll("

 

"); //对内容进行分页 String pattern = "

 

"; String\[] contentSplit = content.split(pattern);\[/code]