/// <param name="data">The HTML string.</param> public SimpleHtmlParser(string data) { this.data = data; commentMatcher = new StatefulMatcher(data, comment); directiveMatcher = new StatefulMatcher(data, directive); beginMatcher = new StatefulMatcher(data, begin); endMatcher = new StatefulMatcher(data, end); attrNameMatcher = new StatefulMatcher(data, attrName); quotedAttrValueMatcher = new StatefulMatcher(data, quotedAttrValue); unquotedAttrValueMatcher = new StatefulMatcher(data, unquotedAttrValue); endBeginTagMatcher = new StatefulMatcher(data, endBeginTag); }