Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CHAPTER 1
- Introduction
- CHAPTER OVERVIEW
- (CHAPTERs{1}dn)
- String text = stripper.getText(document);//The text above
- Pattern p = Pattern.compile("(CHAPTER\s{1}\d\n)");
- Matcher m = p.matcher(text);
- if (m.find()) {
- //do action
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement