@Test
public void testExampleFromHomepage_advancedExample_greedyQuantifierOnDot() throws Exception {

    // Don't do this! This example uses a greedy quantifier on a dot
    Modifier myModifier4 = new RegexModifier("edit.*stream", 0, "modify stream");
    // test: does not find the nearest match
    assertNotEquals("modify stream modify stream", modify("edit stream edit stream", myModifier4));
    // modifier with greedy quantifier on whitespace
    Modifier myModifier5 = new RegexModifier("edit\\s*stream", 0, "modify stream");
    // test: finds the nearest match
    assertNotEquals("modify stream modify stream", modify("edit stream edit stream", myModifier5));
}