mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-06-03 17:25:48 +08:00
桌面端重写请求修改
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
import 'dart:io';
|
||||
|
||||
void main() {
|
||||
print(RegExp('http://dddd/hello\$').hasMatch("http://dddd/hello/world"));
|
||||
// print(RegExp('http://dddd/hello\$').hasMatch("http://dddd/hello/world"));
|
||||
String text = "http://dddd/hello/world?name=dad&val=12a";
|
||||
print("mame=\$1123".replaceAll(RegExp('\\\$\\d'), "123"));
|
||||
print("app: ddd".split(": "));
|
||||
print(text.replaceAllMapped(RegExp("name=(dad)"), (match) {
|
||||
var replaceAll = "mame=\$1-123".replaceAll("\$1", match.group(1)!);
|
||||
|
||||
print(replaceAll);
|
||||
return replaceAll;
|
||||
}));
|
||||
print(Platform.version);
|
||||
print(Platform.localHostname);
|
||||
print(Platform.operatingSystem);
|
||||
|
||||
Reference in New Issue
Block a user