RegexTool { public String quote(String s) { return Pattern.quote(s); }  List<RegexResult> find(String content, String regex); List<List<RegexResult>> findAll(String content, String regex); Pattern compile(String regex); String quote(String s); String quoteReplacement(String s);  }
@Test void quote() { RegexTool tool = new RegexTool(); assertEquals(Pattern.quote("^(\\)[]"), tool.quote("^(\\)[]")); }