Ok if I have this url:
<iframe width="510" height="400" src="http://xhamster.com/xembed.php?video=XXXXXX" frameborder="0" scrolling="no"></iframe>
I can get the video id with
preg_match('/video=([a-zA-Z0-9]+)/', $url, $url_data);
how do I do the same with this url:
<iframe src="http://flashservice.xvideos.com/embedframe/XXXXX" frameborder=0 width=510 height=400 scrolling=no></iframe>
XXXX is the id
I’m really not sure what im doing with regular expressions