Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.
New is underlined " ')' expected" (although that was after I added a space after headerMatches)
Private Shared Function ParseColumns(tableHtml As String) As DataColumn() Dim headerMatches As MatchCollection = Regex.Matches(tableHtml, HeaderPattern, ExpressionOptions) Return (From headerMatch In headerMatchesNew DataColumn(headerMatch.Groups(1).ToString())).ToArray() End Function
New is underlined " ')' expected"
''' <summary> ''' For tables which do not specify header cells we must generate DataColumns based on the number ''' of cells in a row (we assume all rows have the same number of cells). ''' </summary> ''' <param name="rowMatches">A collection of all the rows in the HTML table we wish to generate columns for</param> ''' <returns>A set of DataColumns based on the number of celss in the first row of the input HTML table</returns> Private Shared Function GenerateColumns(rowMatches As MatchCollection) As DataColumn() Dim columnCount As Integer = Regex.Matches(rowMatches(0).ToString(), CellPattern, ExpressionOptions).Count Return (From index In Enumerable.Range(0, columnCount)New DataColumn("Column " & Convert.ToString(index))).ToArray() End Function
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
23 Experts available now in Live!