Hi,
I have basic html in a variable and I would like to find and put into a different variable the URL from each
.
Each page will have a different number of anchor tags so i need to use an array that i can then put the items of the array into text fields of a form.
For example if the variable contains:
The array items would contain theses results:
I have been working on this for many hours and I'm not getting how to do it.
Thank you for your help.
Regards,
Steve
I have basic html in a variable and I would like to find and put into a different variable the URL from each
Code:
<a href="[URL unfurl="true"]http://www.mysite.com/hello.asp?story=123">something</a>[/URL]
Each page will have a different number of anchor tags so i need to use an array that i can then put the items of the array into text fields of a form.
For example if the variable contains:
Code:
<html>
<head>
<title>Hello</title>
</head>
<body>
<a href="[URL unfurl="true"]http://www.yahoo.com">SomeSite01</a>Some[/URL] text la la la
<a href="[URL unfurl="true"]http://www.microsoft.com">SomeSite02</a>[/URL]
This is some more filler text.
<a href="[URL unfurl="true"]http://www.google.com">SomeSite03</a>[/URL]
</body>
</html>
The array items would contain theses results:
Code:
arrLinks(0) = "[URL unfurl="true"]http://www.yahoo.com"[/URL]
arrLinks(1) = "[URL unfurl="true"]http://www.microsoft.com"[/URL]
arrLinks(2) = "[URL unfurl="true"]http://www.google.com"[/URL]
I have been working on this for many hours and I'm not getting how to do it.
Thank you for your help.
Regards,
Steve