7. Format a string with replacement sub-strings

[<<<] [>>>]

re::format(string)

Use this function to format a string using the $1, $2, ... $n placeholders to be replaced by the actual strings after a successful pattern matching.


[<<<] [>>>]