include::../description.adoc[] include::../ask-yourself.adoc[] include::../recommended.adoc[] == Sensitive Code Example ---- import java.util.regex.Pattern; class BasePattern { String regex = "(a+)+b"; // a regular expression String input; // a user input void foo(CharSequence htmlString) { input.matches(regex); // Sensitive Pattern.compile(regex); // Sensitive Pattern.compile(regex, Pattern.CASE_INSENSITIVE); // Sensitive String replacement = "test"; input.replaceAll(regex, replacement); // Sensitive input.replaceFirst(regex, replacement); // Sensitive if (!Pattern.matches(".*