Extract URL from string using AS2
Posted on 2007-07-22
I am trying to parse strings through a loop (in actionscript) that I get from an xml file. The string itself is actually HTML and I am trying to extract an image URL from that string. So the string would look something like so:
<table cellspacing="0"><tr><td>text content here blah blah... <img src="http://www.mydomain.com/image123.jpg" /></td></tr></table>
...and from this string I would want to extract:
The thing is each string will be different and the text content before the image will be different lengths so i wouldn't be able to specify specific character numbers to find the start of the image url that I want to extract.
Can anyone provide help with this? Actionscript 2.0 please.