Home > Backend Development > PHP Tutorial > 求解释一个正则,该如何解决

求解释一个正则,该如何解决

WBOY
Release: 2016-06-13 12:55:47
Original
799 people have browsed it

求解释一个正则
$arr=preg_split("/\|{1,}/", java_values($srcMsg)) 这个正则表达式的意思是什么?帮忙解释谢谢了,本人初学

正则表达式
------解决方案--------------------
将一个或者一个以上的
------解决方案--------------------
做为分隔符,将字符串转为数组
\
------解决方案--------------------
 转义
------解决方案--------------------

{1,} 重复一次以上
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