Regex.substitute

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

class Regex
string
substitute
(
string subject
,,
uint flags
)

Parameters

subject string

the subject string

replacement string

the replacement string

flags uint

PCRE2 match flags

Return Value

Type: string

the substituted string, or null if an error occurred