I was wondering if someone could help me preg_match the image in the code below?
Code: Select all
<embed src="http://domain.tld/player.swf" flashvars="file=http://api.ning.com/files/pXDMMC6clGoLXXXXXX_897UyRigd-8oOTmz2e4q*VXtH7BdpxV2UijYWHQeIr-dFc1grgsnmYllBc4e0kon3CjBvTE3BmOa/tmp42620.flv&image=http://imageshack.us/image_i_need.png&logo=http://domain.tld/logo.png&stretching=fill&abouttext=domain.tld&aboutlink=http://domain.tld&title=Video Title&type=flv" width="520" height="372" align="middle" allowFullScreen="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>Code: Select all
if(preg_match("/http:\/\/api.ning.com\/files/", $embed_code))
{
if (preg_match("image=([\w\-]+))", $embed_code, $matches))
{
$img = $matches[1];
}
}Code: Select all
httpCode: Select all
&imageCode: Select all
&logoalso, please direct me to any regex sites.
thanks.
-Jeff