smartdns icon indicating copy to clipboard operation
smartdns copied to clipboard

【Feature Request】域名匹配支持正则表达式

Open onion83 opened this issue 6 months ago • 0 comments

需求功能: 域名匹配支持正则表达式 需求描述:

现在域名匹配规则根据文档描述,仅支持前缀匹配,不支持后缀或者其它位置,对于 baidu[0-9]{1,2} 类似批量域名,除非手动生成,否者非常麻烦。如果支持的话类似 *.google.[com,jp,fr,sg] 或者干脆 .*google.*一条规则就全部搞定 google 相关域名了。

域名通配 ... /domain/域名匹配规则符号。

// 通配 *-a.example.com // 仅匹配子域名 .example.com // 仅匹配主域名 -.example.com 注意: 和 - 仅支持写在域名开头。其他位置的写法均不支持。

使用场景: 在 v2ray / clash 等相关生态有广泛应用,希望可以沿用

Image

onion83 avatar Jun 09 '25 18:06 onion83