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