T
the dude
I need to find some text in a string. I don't know what the text is
that I need to find, I need to find the text between one string and
another string, like:
<b>Product Detail: "Text I need to find"</b>
I need it to start reading after "Product Detail: " and stop reading
at "</b>"
I wrote the function below, but the only problem is that
thecode.indexof("</b>") will find the first time "</b>" occurs in the
string, which is not what I want:
Function parsehtml(website as string, btag as string, etag as string)
as string
dim thecode as string = readHtmlPage(website)
dim bstr as integer = thecode.indexof(btag) + btag.length
dim estr as integer = thecode.indexof(etag)
dim result as string = thecode.substring(bstr, (estr-bstr))
return result
end function
that I need to find, I need to find the text between one string and
another string, like:
<b>Product Detail: "Text I need to find"</b>
I need it to start reading after "Product Detail: " and stop reading
at "</b>"
I wrote the function below, but the only problem is that
thecode.indexof("</b>") will find the first time "</b>" occurs in the
string, which is not what I want:
Function parsehtml(website as string, btag as string, etag as string)
as string
dim thecode as string = readHtmlPage(website)
dim bstr as integer = thecode.indexof(btag) + btag.length
dim estr as integer = thecode.indexof(etag)
dim result as string = thecode.substring(bstr, (estr-bstr))
return result
end function