CodeQL library for Java/Kotlin
codeql/java-all 1.1.2-dev (changelog, source)

Primitive predicate string::regexpReplaceAll

Returns a copy of the receiver with every substring which matches the given regular expression is replaced by the replacement. The regex format used is Java’s Pattern. The replacement string can contain references to captured groups as described in Java’s appendReplacement docs.

string regexpReplaceAll(string regexp, string replacement)