Reports calls to the regular expression methods of java.lang.String using constants arguments. Such calls may be profitably replaced with a private static final Pattern field so that the regular expression does not have to be compiled each time it is used.

Use the checkbox below to ignore calls to String.split() which are optimized in Java 7 and above. String.split() has optimizations if the regex is either a one-char String and this character is not one of the regex meta characters ".$|()[{^?*+\\", or a two-char String and the first char is the backslash and the second is not an ascii digit or ascii letter.