Hi I've created a system that adds articles in the database, the user can embed youtube or dailymotion or simple flash into the text area. In the home page, I've inserted a slideshow that slides new feed with image, I've writen a simple condition if that checks if the text contains an embeded video using:
if (ereg('<object>',$text){}
I just want to insert the video(object element in general) in the slide show in case there's an object in the text. in other words I want to extract what's between <object>
and </object>
thank you