34 | http://v19.lscache8.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id,expire,ip,ipbits,itag,algorithm,burst,factor,oc:U0dWRlZUVF9FSkNNNl9OTlhF&fexp=902210&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1271696400&key=yt1&signature=583C4A85FA65B6B9782B8B4B5E1F1C08D9EADCA3.5B28033470580BC52EB92A1CB71DBAFE0C4A2A8D&factor=1.25&id=cf3cec58d98073dc,5|http://v24.lscache4.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id,expire,ip,ipbits,itag,algorithm,burst,factor,oc:U0dWRlZUVF9FSkNNNl9OTlhF&fexp=902210&algorithm=throttle-factor&itag=5&ipbits=0&burst=40&sver=3&expire=1271696400&key=yt1&signature=7B74075BAA26B05A028B2219FD52D7A45197F555.A8878413DC7BB3FFAB0C9219CBD3FCDD7221B440&factor=1.25&id=cf3cec58d98073dc解析youtube鏈接PHP
如何爲分析這樣的文字:
34
http://... (before ,5|)
5
http://... to end
以前有人做過這樣:
if (preg_match_all('#|(.*?),#', $urlmap, $b)) {
}
對不起baaaaad英語
您的代碼呼應 'HTPP://',但不是第二回聲導致'不'符號','到底.. 如何修復? – Isis 2010-04-19 10:37:18
@Isis:我已經用ideone的鏈接更新了我的答案。 – codaddict 2010-04-19 10:43:17
謝謝!符號','最後必須刪除)謝謝! – Isis 2010-04-19 10:48:23