T
trint
I need to find all instences of "http://" copy that and every
charactor to ".com" into an array.
example:
mshtml.HTMLDocumentClass doc = (mshtml.HTMLDocumentClass)
this.axWebBrowser1.Document;
StringBuilder sb = new StringBuilder();
string str1 = "";
sb.Append(doc.documentElement.innerHTML);
str1 = sb.ToString();
contents of str1, at this point is:
<TR>
<TD VALIGN=center ALIGN=center><A HREF="http://www.apl.com/"
target="new">American President Line</A></TD>
<TD VALIGN=center ALIGN=center><A HREF="http://www.maerskline.com/"
target="new">Maersk-SeaLand</A></TD>
<TD VALIGN=center ALIGN=center><A HREF="http://www.chevron.com/
about/our_businesses/shipping.asp" target="new">Chevron Shipping</A></
TD>
</TR>
I want each element of an array to contain only the entire "http://
www.address.com".
Anything that you guru's can point me to or tell me is much
appreciated. Searcharoo isn't what I really need to do.
Thanks,
Trint
charactor to ".com" into an array.
example:
mshtml.HTMLDocumentClass doc = (mshtml.HTMLDocumentClass)
this.axWebBrowser1.Document;
StringBuilder sb = new StringBuilder();
string str1 = "";
sb.Append(doc.documentElement.innerHTML);
str1 = sb.ToString();
contents of str1, at this point is:
<TR>
<TD VALIGN=center ALIGN=center><A HREF="http://www.apl.com/"
target="new">American President Line</A></TD>
<TD VALIGN=center ALIGN=center><A HREF="http://www.maerskline.com/"
target="new">Maersk-SeaLand</A></TD>
<TD VALIGN=center ALIGN=center><A HREF="http://www.chevron.com/
about/our_businesses/shipping.asp" target="new">Chevron Shipping</A></
TD>
</TR>
I want each element of an array to contain only the entire "http://
www.address.com".
Anything that you guru's can point me to or tell me is much
appreciated. Searcharoo isn't what I really need to do.
Thanks,
Trint