The use of a regular expression allows multiple rewrite rules to be combined into one. This allows more versatile conversions but, given the simple nature of regular expressions, also makes accidental changes more likely. Addd mxs::pcre2_substitute that is a more C++-friendly version of mxs_pcre2_substitute to make. This makes string replacement a lot easier to do when the source and destination are not C strings.