public SnifferItem(string itemName, RegexString regexString, string defaultValue, bool saveImage, string saveImagesPath, bool isClearHTML) { this._itemName = itemName; this._regexString = regexString; this._defaultValue = defaultValue; this._saveImage = saveImage; this._saveImagesPath = saveImagesPath; this._isClearHTML = isClearHTML; }
public static RegexString CreateRegexString(XmlNode regexStringNode) { RegexString regexString = new RegexString(); regexString.Expression = regexStringNode.InnerText; if (regexStringNode.Attributes["ValueGroupIndex"] != null) { regexString.ValueGroupIndex = int.Parse(regexStringNode.Attributes["ValueGroupIndex"].Value); } return(regexString); }