Rumah >pembangunan bahagian belakang >tutorial php >怎么写正则表达式啊
我想要获取
http://g3.ykimg.com/0100641F46517F89EA4F83089A8A5D630DED16-0750-707F-A7E2-9E3ECF173D95
$s = '<img src="http://g3.ykimg.com/0100641F46517F89EA4F83089A8A5D630DED16-0750-707F-A7E2-9E3ECF173D95" border="0" style="max-width:90%" style="max-width:90%" vspace="4" hspace="4" title="00000"/ alt="怎么写正则表达式啊" >';preg_match('/src="(.+)"/U', $s, $r);echo $r[1];http://g3.ykimg.com/0100641F46517F89EA4F83089A8A5D630DED16-0750-707F-A7E2-9E3ECF173D95