致力于为用户提供真实的
主机测评数据及优惠信息

有正则大佬吗?一包烟钱30元

网友 Far 说:

*帖最后由 Far 于 2022-7-14 22:44 编辑

以第一个大佬正确的结果为准,我发红包。

  1. https://www.有图比.com/watch?v=Bo3BdddaUo<br />http://baidu.com/hsjjs/xxxxx https://**.com/v/xxxxx https://hostloc.com/thread-22895-1-1.htmlhttps://hostloc.com/thread-47070-1-1.html
  2. https://www.有图比.com/watch?v=d0**dsdhHca0<br />http://youku.com/5544 http://b.com/dddd
  3. <br />
  4. </td></tr></table>

网友 8899 说:

技术这么不值钱吗?虽然我不会

网友 kmbeer 说:

排除应该再写**  不是用正则

网友 7836246 说:

//([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?

网友 bug**soul 说:

  1. (https?:\/\/(?:(?!(youku\.com|b\.com)))[^\.]*(\.([^\<\s](?!http))+)+)

网友 linkey 说:

(https?)://(?!(b\.com|youku\.com))[\u4e00-\u9fa5-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]

网友 Far 说:

bug**soul 发表于 2022-7-14 22:21
网友 Far 说:

linkey 发表于 2022-7-14 22:40
(https?)://(?!(b\.com|youku\.com))[%u4e00-%u9fa5-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]

网友 bug**soul 说:

*帖最后由 bug**soul 于 2022-7-14 22:53 编辑

  1. (https?:\/(?:(?!\/(youku\.com|b\.com)))(\/[^\.\/\<\s]*(\.?[^\.\/\<\s](?:(?!ttps?:)))+)+)

网友 Far 说:

bug**soul 发表于 2022-7-14 22:51
少了l
网友 linkey 说:

*帖最后由 linkey 于 2022-7-14 23:07 编辑

Far 发表于 2022-7-14 22:42
大佬 匹配出的结果,只有头
网友 Far 说:

linkey 发表于 2022-7-14 23:04
没问题呀
网友 linkey 说:

Far 发表于 2022-7-14 23:08
大佬 看一下10楼, 我把源码帖出来了,匹配哈
网友 *imo 说:

  1. a = re.findall(‘(https?:\/\/(?:(?!(youku\.com|b\.com)))[^\.]*(\.([^\<\s](?!http))+)+)’,html)
赞(0) 打赏
未经允许不得转载:爱主机 » 有正则大佬吗?一包烟钱30元
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址