Search found 2 matches

by Jeff Gordon
Fri Oct 31, 2008 9:25 pm
Forum: PHP - Code
Topic: [?] How To: preg_match an image URL
Replies: 2
Views: 208

Re: [?] How To: preg_match an image URL

L O L, well I actually answered my own question. this is the code: if(preg_match("/http:\/\/api.ning.com\/files/", $embed_code))     {     if (preg_match("!&image=(.+)&logo=!", $embed_code, $matches))     {     $img = $matches[1];     }     } if someone has something bett...
by Jeff Gordon
Fri Oct 31, 2008 9:23 pm
Forum: PHP - Code
Topic: [?] How To: preg_match an image URL
Replies: 2
Views: 208

[?] How To: preg_match an image URL

I am a complete idiot when it comes to regex. I was wondering if someone could help me preg_match the image in the code below? <embed src="http://domain.tld/player.swf" flashvars="file=http://api.ning.com/files/pXDMMC6clGoLXXXXXX_897UyRigd-8oOTmz2e4q*VXtH7BdpxV2UijYWHQeIr-dFc1grgsnmYl...