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