Continue to ask for a php regular expression. when you copy an article online, the following content is often included in the article.
(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
Beg for a regex that can delete these
Reply to discussion (solution)
$ S = <
Upstairs v5, respectable
$ S = <
$ S = <
$ S = <
Strong guy! However
In this way, the filter is marked as [], but some [] are normal content and are publicized by the website.
So, how can I filter the data based on the content such as [], including. com. cn. net?
$ S = <
Strong guy! However
In this way, the filter is marked as [], but some [] are normal content rather than advertisement information.
So, how can I filter the data based on the content such as [], including. com. cn. net?
$p=array( "/(.+?(com|cn|net))/","/【.+?(com|cn|net)】/","/〖.+?(com|cn|net)〗/","/『.+?(com|cn|net)』/","/「.+?(com|cn|net)」/","/\[.+?(com|cn|net)\]/","/\(.+?(com|cn|net)\)/");
Try again, so it is better:
$p=array( "/(.+?\.(com|cn|net))/","/【.+?\.(com|cn|net)】/","/〖.+?\.(com|cn|net)〗/","/『.+?\.(com|cn|net)』/","/「.+?\.(com|cn|net)」/","/\[.+?\.(com|cn|net)\]/","/\(.+?\.(com|cn|net)\)/");
Try again, so it is better:
$p=array( "/(.+?\.(com|cn|net))/","/【.+?\.(com|cn|net)】/","/〖.+?\.(com|cn|net)〗/","/『.+?\.(com|cn|net)』/","/「.+?\.(com|cn|net)」/","/\[.+?\.(com|cn|net)\]/","/\(.+?\.(com|cn|net)\)/");
Thank you very much.
I would like to ask another question: how can I add another judgment url? the previous judgment is based on. com. cn and other suffixes, and how can I judge based on the prefix www.
Thank you again
Try again, so it is better:
$p=array( "/(.+?\.(com|cn|net))/","/【.+?\.(com|cn|net)】/","/〖.+?\.(com|cn|net)〗/","/『.+?\.(com|cn|net)』/","/「.+?\.(com|cn|net)」/","/\[.+?\.(com|cn|net)\]/","/\(.+?\.(com|cn|net)\)/");
I would like to ask another question: how can I add another judgment url? the previous judgment is based on. com. cn and other suffixes, and how can I judge based on the prefix www.
Thank you again