Parse HTML source and quotation marks
Posted on 2005-05-13
ok... I have an app that I put together with VisStud.net
it will parse a web page and output data to a file.
one section is giving me a hard time.
I want to output the street address that is not dispalyed on the website. It is used as a variable to open a mapping program and is contained in the original source code in a form like so
<input type="hidden" name="address1" value="123 Main St.">
I want to pull the 123 Main St. out without pulling the quotation marks.
strHTML = ie.document.body.innerhtml
position1 = InStr(strHTML, "address1")
position2 = InStr(position1, strHTML, ";") + 1
ticket = Mid(strHTML, position2, InStr(position2, strHTML, ">") - position2)
also... the phrase address1 shows up twice before in the source... I do not want to use those points. How can I get it to use start at the third instance of address1