Assert.assertThat(p.match("org")[0], is(""));
Assert.assertThat(p.match("orgaaa")[0], is("aaa"));
Assert.assertThat(p.match("orgaaa").length, is(1));
p = Pattern.compile("www.?.com?", "?");
Assert.assertThat(p.match("www.fireflysource.com")[0], is("fireflysource"));
Assert.assertThat(p.match("www.fireflysource.com")[1], is(""));
Assert.assertThat(p.match("www.fireflysource.com/cn/")[1], is("/cn/"));
Assert.assertThat(p.match("www.fireflysource.com/cn/").length, is(2));
Assert.assertThat(p.match("orange"), nullValue());