Home  >  Article  >  Backend Development  >  正则表达式中如何匹配换行符?答案

正则表达式中如何匹配换行符?答案

WBOY
WBOYOriginal
2016-06-13 13:12:08871browse

正则表达式中怎么匹配换行符?在线等答案
我是这样(.+?)写的,不支持换行符,请问怎么些才能包括所有字符呢?

------解决方案--------------------

\n 匹配一个换行符。等价于 \x0a 和 \cJ。 

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