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

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

WBOY
WBOYOriginal
2016-06-13 13:48:031162browse

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

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


提取 |_| 后面 至 '

内容为: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>
探讨

引用:

PHP code

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