Exemple #1
0
 public RegexEntryEditor(string regexToReplace, string replacement, EntryTextModifier entryTextModifier)
 {
     this.regexToReplace    = new Regex(regexToReplace, RegexOptions.Multiline);
     this.replacement       = replacement;
     this.entryTextModifier = entryTextModifier ?? throw new ArgumentNullException(nameof(entryTextModifier));
 }
Exemple #2
0
 public EntryEditor(string replaceFrom, string replaceTo, EntryTextModifier entryTextModifier)
 {
     this.replaceFrom       = replaceFrom;
     this.replaceTo         = replaceTo;
     this.entryTextModifier = entryTextModifier ?? throw new ArgumentNullException(nameof(entryTextModifier));
 }