if an error occurred
Regex.substitute
string substitute(string subject, string replacement, uint flags)See man:pcre2api(3) and man:pcre2_substitute(3) for more information.
Parameters
subject | the subject string |
replacement | the replacement string |
flags | PCRE2 match flags |
Returns
the substituted string, or null
Throws
[ErrorWrap]