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)); }
public EntryEditor(string replaceFrom, string replaceTo, EntryTextModifier entryTextModifier) { this.replaceFrom = replaceFrom; this.replaceTo = replaceTo; this.entryTextModifier = entryTextModifier ?? throw new ArgumentNullException(nameof(entryTextModifier)); }