regex_transformer library

Transforms text by taking capture groups matched by a RegExp and outputting them as plain text and/or evaluating them as expressions, as defined by an output template.

Classes

RegexTransformer
A RegExp paired with an output template that matches input text with the RegExp and returns a new string based on the template with the capture groups matched by the RegExp filled in.

Extensions

RegExpTransformers on RegExp
Adds the transform and transformAll methods from RegexTransformer to RegExp.
StringTransformers on String
Adds the transform and transformAll methods from RegexTransformer to String.