正则表达式匹配非标准域

Regex match non-standard domains

我正在尝试使用正则表达式匹配非标准 TLD( 以 .com、.net 或 .org 结尾的域)

我尝试了以下方法,但我做错了。

.*(?<!\.(?:com|net|org)\/)

http://www.spam-link.br/getmoneyhere.php

我的正则表达式将匹配任何内容。知道我做错了什么吗?

https://regex101.com/r/HEbeWU/3

试试这个:

http://[^:/]++(?<!\.(?:com|net|org))