Replace matches of the regular expression Pattern in String with
With. With may reference captured substrings using \N or $Name. Both
N and Name may be written as {N} and {Name} to avoid ambiguities.
Arguments:
Pattern
- is the pattern text, optionally follows by /Flags.
Flags may include g, replacing all occurences of Pattern. In
addition, similar to re_matchsub/4, the final output type can be
controlled by a flag a (atom) or s (string, default).