Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host正则怎么不支持反向引用 #1096

Closed
aogg opened this issue Jun 6, 2024 · 4 comments
Closed

host正则怎么不支持反向引用 #1096

aogg opened this issue Jun 6, 2024 · 4 comments

Comments

@aogg
Copy link

aogg commented Jun 6, 2024

^cache.gs.(*).a/$ cache.gs.$1.a/index.php

@avwo
Copy link
Owner

avwo commented Jun 6, 2024

你要实现什么功能

@aogg
Copy link
Author

aogg commented Jun 6, 2024

$1 正则的反向引用,作用到host上

我只是想个多个域名加路径和替换特定位置的域名

比如,多加一层
^cache.gs.(*).a/$ cache.gs.$1.a.a

@avwo
Copy link
Owner

avwo commented Jun 6, 2024

试试这个 ^cache.gs.*.a/ cache.gs.$1.a.a ,通配符跟正则不一样:https://wproxy.org/whistle/pattern.html

@aogg
Copy link
Author

aogg commented Jun 6, 2024

确实可以

@aogg aogg closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants