@Test public void isStartAnchored() { Assertions.assertTrue(PatternMatcher.compile("^abc").isStartAnchored()); Assertions.assertTrue(PatternMatcher.compile("^[a-z]").isStartAnchored()); Assertions.assertTrue(PatternMatcher.compile("(^a|^b)").isStartAnchored()); Assertions.assertFalse(PatternMatcher.compile("(^a|b)").isStartAnchored()); Assertions.assertFalse(PatternMatcher.compile("abc").isStartAnchored()); }