RegExpTransformers extension
Adds the transform and transformAll methods from RegexTransformer to RegExp.
- on
Methods
-
transform(
String input, String output, {Map< String, dynamic> ? variables, bool math = false, bool strict = false}) → String -
Identifies the first match of
this
ininput
and outputs a new string as defined by theoutput
template. -
transformAll(
String input, String output, {Map< String, dynamic> ? variables, bool math = false, bool strict = false}) → String -
Returns a new string with every instance of
this
matched withininput
replaced with new text as defined by theoutput
template.