### Question:
URLCleaner { public static String removeRegexpFromUrl(String url) { return url.replaceAll( "\\{([A-Za-z0-9_-]+?):([^{}]+?\\{[0-9,]+?\\})*([^{}]+)*\\}", "{$1}"); } private  URLCleaner(); static String removeRegexpFromUrl(String url);  }### Answer:
@Test public void testRemoveRegexpFromUrl() throws Exception { Assert.assertEquals(expectedOutput, URLCleaner.removeRegexpFromUrl(inputUrlPattern)); }