正则表达式,排除婚配:A结束标签
- WBOYOriginal
- 2016-06-13 11:52:441068browse
正则表达式,排除匹配:A结束标签
</?[^a][^>]*?>
我要保留所有的A标签(含,其他标签都不要(包括A中包含的标签),当前只能匹配到除
的标签,怎么样才可以再匹配 ,求解
------解决方案--------------------php 提供了高效的方法,就像是对你量身定做的一样
$text= strip_tags($text, '
');
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