Home  >  Article  >  Backend Development  >  怎么写正则表达式啊

怎么写正则表达式啊

WBOY
WBOYOriginal
2016-06-23 14:07:53759browse

怎么写正则表达式啊

我想要获取
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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn