Continue to ask for a PHP regular, you heroes help
When copying articles on the Internet, often the articles are mixed with the following content
(XXX net www.xxx.com)
(XXX net xxx.com)
(XXX net www.xxx.cn)
(XXX net www.xxx.net)
"XXX Net www.xxx.com.cn"
[XXX net www.xxx.cn]
(XXX net xxx.com)
The rule is that the website information is in Chinese () or "" or 〖〗 "" "or English () [].
The content inside is more
To beg for a regular that can delete these
Share to:
------Solution--------------------
Change it again, this is better:
$p =array (
"/(. +?\. (COM
------Solution--------------------
cn
------Solution--------------------
NET))/",
"/". +?\. (COM
------Solution--------------------
cn
------Solution--------------------
NET) "/",
"/〖.+?\. (COM
------Solution--------------------
cn
------Solution--------------------
NET) 〗/",
"/". +?\. (COM
------Solution--------------------
cn
------Solution--------------------
NET) "/",
"/".+?\. (COM
------Solution--------------------
cn
------Solution--------------------
NET) "/",
"/\[.+?\. (COM
------Solution--------------------
cn
------Solution--------------------
NET) \]/",
"/\(.+?\. (COM
------Solution--------------------
cn
------Solution--------------------
NET) \)/"
);