@Test void testSplitWithoutBeforeSpaces() throws Exception { String[] segments = RuleExtractor.split("This:n +is:v"); assertEquals(2, segments.length); assertEquals("This:n", segments[0]); assertEquals("is:v", segments[1]); }
static String[] split(String line) { String[] segments = line.split(" *[+] *"); return segments; }
RuleExtractor { static String[] split(String line) { String[] segments = line.split(" *[+] *"); return segments; } }
RuleExtractor { static String[] split(String line) { String[] segments = line.split(" *[+] *"); return segments; }  }
RuleExtractor { static String[] split(String line) { String[] segments = line.split(" *[+] *"); return segments; }  static ExpressionRule run(String line); }
RuleExtractor { static String[] split(String line) { String[] segments = line.split(" *[+] *"); return segments; }  static ExpressionRule run(String line);  }