I would like to grab the url (the src) of the first img tag found in a chunk of html. The html is taken from a description tag from an rss 2 feed I've parsed, and I've love to grab the first image inside it to use as a thumbnail.
Probably really simple, but it's been a long night on this. Any ideas, please?
<img[^>]+src=\"([^\"]+)\"<- regex is your friend, throw that against your the contents of your description tag (assumes double quotes)
Think you can help? Login to answer this question!