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.
#2

[eluser]pistolPete[/eluser]
Have a look at this thread: http://ellislab.com/forums/viewreply/630811/

If you need further assistance, post an example of what you need to parse.




Theme © iAndrew 2016 - Forum software by © MyBB