mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-03-18 05:13:25 +08:00
23 lines
956 B
Dart
23 lines
956 B
Dart
import 'dart:io';
|
|
|
|
void main() async {
|
|
Uri.parse("https://[2408:8726:a000:f0:70::21]/");
|
|
String str = 'https://zhihu.com/giftList?(?:[^&]*&)*page=1(?:&[^&]*)*\$'.replaceAll("*", ".*")..replaceAll('?', '\\?');
|
|
print(RegExp(str).hasMatch("https://zhihu.com/giftList?type=1&sort=0&page=1&orderBy=desc&pageSize=20"));
|
|
// print(RegExp('^www.baidu.com').hasMatch("https://www.baidu.com/wqeqweqe"));
|
|
// 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('localHostname: ${Platform.localHostname}');
|
|
// print(Platform.operatingSystem);
|
|
// print(Platform.localeName);
|
|
// print(Platform.script);
|
|
}
|