Welcome Guest, Not a member yet? Register   Sign In
Extracting the first image and string of text from a piece of HTML
#1

[eluser]Daniel H[/eluser]
Hi all,

I simply need to grab the first image, and then the first - say - two sentences from a piece of HTML (an RSS item): how would I do this?

And then, how would extract all the image URLs from a piece of HTML, and add them to an array?

I assume this is perfectly easy using regex but I'm hopeless at it!

Thanks,
Dan.


Messages In This Thread
Extracting the first image and string of text from a piece of HTML - by El Forum - 09-11-2009, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB