RegexReplace constructor

RegexReplace(
  1. Map config
)

Constructs a new instance

Implementation

RegexReplace(super.config)
    : regex = [
        for (List r in config['replacements'])
          RegExp(r[0],
              multiLine: config['multiLine'] ?? false,
              caseSensitive: config['caseSensitive'] ?? true,
              unicode: config['unicode'] ?? false,
              dotAll: config['dotAll'] ?? false)
      ].lock;