【发布时间】:2012-10-24 07:06:31
【问题描述】:
可能重复:
RegEx pattern to get the YouTube video ID from any YouTube URL
我已将 youtube url 存储在数据库中。我只想从 youtube url 中获取 youtube id。我只想从下面的 url 中提取 id(6FjfewWAGdE)。
$youtubeVal=http://www.youtube.com/embed/6FjfewWAGdE?feature=player_detailpage
【问题讨论】:
-
查看正则表达式
标签: php javascript