Continue to obtain a php regular expression. when you copy an article online, the following content is often included in the article (xxx network & nbsp; www.xxx.com) (xxx network & nbsp; xxx.com) (xxx network & nbsp; www.xxx.cn) (xxx network & nbsp; www.xxx.net) [xxx network & nbsp; www. xxx. co continues to ask for a php regular expression. could you help me?
When copying articles online, the following content is often included in the articles:
(Www.xxx.com)
(Xxx network xxx.com)
(Www.xxx.cn)
(Www.xxx.net)
[Xxx www.xxx.com.cn]
[Xxx www.xxx.cn]
(Xxx network xxx.com)
The rule is that the website information is enclosed in Chinese () or [] or [], ", or English () [].
Most of the content is the URL
Find a regular expression that can be deleted and share it:
------ Solution --------------------
Try again, so it 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 )\)/"
);