CodeQL library for C/C++
codeql/cpp-all 3.0.1-dev (changelog, source)
Search

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)