Home > Backend Development > PHP Tutorial > 帮小弟我看下这个正则表达式如何写

帮小弟我看下这个正则表达式如何写

WBOY
Release: 2016-06-13 13:48:03
Original
1185 people have browsed it

帮我看下这个正则表达式怎么写

 帮小弟我看下这个正则表达式如何写


提取 |_| 后面 至 '

内容为:wzw%40oppo.com



------解决方案--------------------
PHP code

$str=<img  src="https://chart.googleapis.com/chart?chst=d_text_outline&chld=000000%7C12%7Ch%7CFFFFFF%7C_%7Cwzw%40oppo.com" alt=" 帮小弟我看下这个正则表达式如何写 " >
html;
preg_match("/\|_\|(.*)'/s",$str,$arr);
echo $arr[1];
<br><font color="#e78608">------解决方案--------------------</font><br>
Copy after login
探讨

引用:

PHP code

$str=  帮小弟我看下这个正则表达式如何写 html;
preg_ma……
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