Home >Backend Development >PHP Tutorial >正則表達式怎么匹配特殊符號 ^$-+

正則表達式怎么匹配特殊符號 ^$-+

WBOY
WBOYOriginal
2016-06-13 11:11:16948browse

正則表達式如何匹配特殊符號 ^$-+*
正則表達式如何匹配特殊符號 ^$-+*


------解决方案--------------------
http://php.net/manual/zh/function.preg-quote.php
或者你可以自己添加转义符 \
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