Home  >  Article  >  Backend Development  >  标签-php正则表达式问题????

标签-php正则表达式问题????

WBOY
WBOYOriginal
2016-06-02 11:28:02876browse

标签stringphp正则表达式

 |
]+>/"; $str = "
无语

hi

"; preg_match_all($pattern,$str,$matches); var_dump($matches);?>

请问为什么结果是:

 array (size=1)  0 =>     array (size=2)      0 => string '
' (length=25) 1 => string '

hi

' (length=13)

应该先匹配出p标签吗?

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