我想知道用其中的 vid_id 替换这个字符串的最佳正则表达式
$code = '<object width="420" height="345"><br />
<param name="movie" value="http://www.badoobook.com/clips/swf/player.swf"></param><br />
<param name="allowFullScreen" value="true"></param><param name="flashvars" value="vid_id=100226&MainURL=http%3A%2F%2Fwww.bado obook.com%2Fclips&em=1"><br />
<embed src="http://www.badoobook.com/clips/swf/player.swf" flashvars="vid_id=100226&MainURL=http%3A%2F%2Fwww. badoobook.com%2Fclips&em=1" type="application/x-shockwave-flash" allowScriptAccess="always" width="420" height="345" allowFullScreen="true"></embed></object>'
$regular = '';
$code = preg_replace($regular ,'$1' , $code);
echo $code;
此代码中的 vid id 是
值=
"
vid_id= 100226&
谢谢你的帮助