assertEquals(true, regex2.match("abc", "1234") );
NonConstantRegex ncr = new NonConstantRegex();
assertEquals(false, ncr.match("1234", "abc"));
assertEquals(false, ncr.match("abc", "1234"));
assertEquals(true, ncr.match("1234", "\\d\\d\\d\\d"));
assertEquals(true, ncr.match("abc", "[a-z]{3}"));
} catch( Exception e ){
fail();