Do not convert
<br/> <br/><br/>
Convert, if there are more than two newline tag
<br/><br/><br/>
into
<br/><br/>
How to add my condition to this?
preg_replace("/(<br\s*\/?>\s*)+/", "<br/><br/>", $input);
收起
(<br[ ]*\/?>){2,}
Simply use this.And replace it by <br/><br/>.
报告相同问题?
程序员都在用的中文IT技术交流社区
专业的中文 IT 技术社区,与千万技术人共成长
关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!