Howdy,
I just have a small problem on one of my latest, small projects (EYC). We have the following situation: User enters a page, sees a form, pastes the Embed Code into a <textarea> and clicks on the "Proceed" button. Now: how can I filter out a specific part from the embed code?
Example - this is the embed code the user enters/pastes in:
Code:
<object width="800" height="440"><param name="movie" value="http://www.megavideo.com/v/Z12IQXAL46215bbe9383"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.megavideo.com/v/Z12IQXAL46215bbe9383" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="800" height="440"></embed></object>
Now I want to fetch ONLY
http://www.megavideo.com/v/Z12IQXAL46215bbe9383
from the code. BUT the embed codes may variee on positions like width, height etc. How can I filter out the part between <param name="movie" value=" and "></param> or src=" " ?
I'd be very thankful for every single suggestion.