【发布时间】:2013-04-12 19:41:57
【问题描述】:
知道为什么这个正则表达式不起作用吗?
'#((http://|www.)(.*^(youtube)\.(com|org|co.il|net|us|ws|info|tv|me|tk|co.uk).*))#'
我想查找不属于 YouTube 的链接。
【问题讨论】:
-
为什么不正确地 parse the URL 并检查
PHP_URL_HOST中的 second level domain?我建议不要为自己创建 2 problems。