Struct ::regex::Regex
A UTF-8 string regular expression
Methods
Replace the leftmost match in the string.
Capture groups can be referred to via $1, $2, etc. ($0 is the full match). Named capture groups are supported via $name. You can also use ${name} or ${1} etc., which is often needed to disambiguate when a capture group number is followed by literal text.
Replace all matches in the string
Capture groups can be referred to via $1, $2, etc. ($0 is the full match). Named capture groups are supported via $name.