assertTrue(r.matches("bar foo"));
assertTrue(r.matches(" foo"));
r.pattern = "*foo*";
assertFalse(r.matches("fo"));
assertFalse(r.matches("bar"));
assertFalse(r.matches(""));
assertTrue(r.matches("foo"));
assertTrue(r.matches("bar foo baz"));
assertTrue(r.matches(" foo"));
assertTrue(r.matches(" foo&."));