是否有Regex从网页上嵌入的YouTube视频获取YouTube视频链接或ID?
发现: "<object(.*)youtube.com/v/(.*)\"(.*)</object>"
"<object(.*)youtube.com/v/(.*)\"(.*)</object>"
要转换为链接: replace("<object(.*)youtube.com/v/(.*)\"(.*)</object>", '<a href="http://www.youtube.com/watch?v=\\2">click here</a>', $str)
replace("<object(.*)youtube.com/v/(.*)\"(.*)</object>", '<a href="http://www.youtube.com/watch?v=\\2">click here</a>', $str)
source