This will remove all formatting from the table while leaving this line at the top so that you can define a css stylesheet for the table.
<table class="MsoTableGrid">
<%
' Url of the webpage we want to retrieve
thisURL = "http://www.i44speedway.com/Trackpoints.htm"
' Creation of the xmlHTTP object
Set GetConnection = CreateObject("Microsoft.XMLHTTP")
' Connection to the URL
GetConnection.Open "get", thisURL, False
GetConnection.Send
' ResponsePage now have the response of
' the remote web server
ResponsePage = GetConnection.responseText
' We write out now
' the content of the ResponsePage var
Response.write (getTable(ResponsePage))
Set GetConnection = Nothing
Function getTable(pageString)
dim myMatches
Set RegularExpressionObject = New RegExp
With RegularExpressionObject
.Pattern = "<table.*>(.|\n)*?</table>"
.IgnoreCase = True
.Global = True
End With
set myMatches = RegularExpressionObject.Execute(pageString)
tempTable = myMatches(4) ' Get the fifth table on the page
'###### Remove all formatting
tempTable = Replace(tempTable, "#336699", "#006600", 1, -1, 1) ' replace #006600 with your preferred colour
tempTable = Replace(tempTable, "<td width=""148"" valign=""bottom"" style=""width: 110.7pt; border-left: medium none #006600; border-right: 1.0pt solid #006600; border-top: 1.0pt solid #006600; border-bottom: 1.0pt solid #006600; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in"">", "<td>", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, " width=""148"" valign=""bottom"" style=""width: 110.7pt; border-left: medium none #006600; border-right: 1.0pt solid #006600; border-top: medium none #006600; border-bottom: 1.0pt solid #006600; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in""", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, " width=""148"" valign=""bottom"" style=""width: 110.7pt; border-left: 1.0pt solid #006600; border-right: 1.0pt solid #006600; border-top: medium none #006600; border-bottom: 1.0pt solid #006600; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in""", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, " class=""MsoNormal""><span style=""font-family:Arial""><font size=""3""", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "</font>", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "</span>", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, " class=""MsoNormal"" align=""center"" style=""text-align:center""", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "<span style=""font-family:Arial""><font size=""3"">", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "<span style=""font-family:Arial""><font size=""3"" color=""#0000FF"">", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "<span style=""font-family: Arial; font-weight: 700"">", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "<font size=""3"" color=""#FF0000"">", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "<p class=""MsoNormal"">", "<p>", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "<span style=""font-family:Arial"">", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, "<font size=""3"" color=""#0000FF"">", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, " width=""148"" valign=""bottom"" style=""width: 110.7pt; border: 1.0pt solid #006600; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in""", "", 1, -1, 1) ' get rid of formatting altogether
tempTable = Replace(tempTable, " border=""1"" cellspacing=""1"" style=""border: 3px ridge #0000FF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1""", "", 1, -1, 1) ' get rid of formatting altogether
getTable = tempTable
Set RegularExpressionObject = nothing
End Function
%>