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

怎么写正则表达式啊

WBOY
Release: 2016-06-23 14:07:53
Original
786 people have browsed it

怎么写正则表达式啊

我想要获取
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];
Copy after login
http://g3.ykimg.com/0100641F46517F89EA4F83089A8A5D630DED16-0750-707F-A7E2-9E3ECF173D95

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template