Regex.substitute

string substitute(string subject, string replacement, uint flags)

See man:pcre2api(3) and man:pcre2_substitute(3) for more information.

Parameters

subjectthe subject string
replacementthe replacement string
flagsPCRE2 match flags

Returns

the substituted string, or null

if an error occurred

Throws

[ErrorWrap]