transform method
Identifies the first match of regex
in this
and outputs a new
string as defined by the output
template.
If the regex
can't be matched with this
string, the string will
be output unmodified.
Implementation
String transform(
RegExp regex,
String output, {
Map<String, dynamic>? variables,
bool math = false,
bool strict = false,
}) =>
RegexTransformer(
regex: regex,
output: output,
variables: variables,
math: math,
strict: strict,
).transform(this);