php 正则找出iframe的src 10
<iframewidth="100%"height="100%"src="http://vod.aodianyun.cn/share/live/iframe/575b89...
<iframe width="100%" height="100%" src="http://vod.aodianyun.cn/share/live/iframe/575b893b30ba00c5423dfe4a?token=b45cQ1pdjqiCZQjPgXEi5TwhBJuynQzX%252BkLKNxbCGrqwg0zqUu98sMgdNfMYHQVTJOU4Jii8itKKVVAPVfyrhef34%252FrjkMqK7GgysP8uxEvizXxLdgUp8TXnz1%252FzZpU" frameborder="0" allowfullscreen=""></iframe>
展开
2个回答
展开全部
<?php
$str = '<iframe width="100%" height="100%" src="http://vod.aodianyun.cn/share/live/iframe/575b893b30ba00c5423dfe4a?token=b45cQ1pdjqiCZQjPgXEi5TwhBJuynQzX%252BkLKNxbCGrqwg0zqUu98sMgdNfMYHQVTJOU4Jii8itKKVVAPVfyrhef34%252FrjkMqK7GgysP8uxEvizXxLdgUp8TXnz1%252FzZpU" frameborder="0" allowfullscreen=""></iframe>';
preg_match('/<iframe[^>]*\s+src="([^"]*)"[^>]*>/is', $str, $matched);
echo $matched[1];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询