15161718192021222324
Pattern p = Pattern.compile("\\(### \\w* \\d* ###\\)"); Matcher matcher = p.matcher(sc.getSource()); while(matcher.find()) { chunks.add(new RuleChunk(matcher.group())); } return chunks; }