@Test
public void testExecuteWithPattern() throws Exception {

    CleanPatternSanitizer sanitizer = new CleanPatternSanitizer("[\\d]{4}-[\\d]{2}-[\\d]{2}");
    assertEquals("2012-06-28", sanitizer.execute("2012-06-28"));
    assertEquals("2012-06-282012-06-28", sanitizer.execute("2012-06-28 2012-06-28"));
    assertEquals("2012-06-28", sanitizer.execute("yadda yadda 2012-06-28"));
    assertEquals("", sanitizer.execute("^50 First} St, ~Flo|or 7"));
}