@Test public void dotAllNoCase() { Replacement replacement = Replacement.dotAllNoCase("[a-z]", "_"); assertEquals("__", replacement.replaceAll("xY")); }
public static Replacement dotAllNoCase(String pattern, String replaceWith) { Assert.hasLength(pattern); Pattern p = Pattern.compile(pattern, Pattern.DOTALL + Pattern.CASE_INSENSITIVE); return new Replacement(p, replaceWith); }
Replacement { public static Replacement dotAllNoCase(String pattern, String replaceWith) { Assert.hasLength(pattern); Pattern p = Pattern.compile(pattern, Pattern.DOTALL + Pattern.CASE_INSENSITIVE); return new Replacement(p, replaceWith); } }
Replacement { public static Replacement dotAllNoCase(String pattern, String replaceWith) { Assert.hasLength(pattern); Pattern p = Pattern.compile(pattern, Pattern.DOTALL + Pattern.CASE_INSENSITIVE); return new Replacement(p, replaceWith); } Replacement(Pattern pattern, String replaceWith);  Replacement(String pattern, String replaceWith); }
Replacement { public static Replacement dotAllNoCase(String pattern, String replaceWith) { Assert.hasLength(pattern); Pattern p = Pattern.compile(pattern, Pattern.DOTALL + Pattern.CASE_INSENSITIVE); return new Replacement(p, replaceWith); } Replacement(Pattern pattern, String replaceWith);  Replacement(String pattern, String replaceWith); static Replacement dotAllNoCase(String pattern, String replaceWith); String replaceAll(String s); }
Replacement { public static Replacement dotAllNoCase(String pattern, String replaceWith) { Assert.hasLength(pattern); Pattern p = Pattern.compile(pattern, Pattern.DOTALL + Pattern.CASE_INSENSITIVE); return new Replacement(p, replaceWith); } Replacement(Pattern pattern, String replaceWith);  Replacement(String pattern, String replaceWith); static Replacement dotAllNoCase(String pattern, String replaceWith); String replaceAll(String s);  }