shino3(しのさん) on Nostr: val noProtocolUrlValidator = ...
val noProtocolUrlValidator = Pattern.compile("(([\\w\\d-]+\\.)*[a-zA-Z][\\w-]+[\\.\\:]\\w+([\\/\\?\\=\\&\\#\\.]?[\\w-]+)*\\/?)(.*)")
// 抜粋
} else if (schemelessMatcher.find()) {
val url = schemelessMatcher.group(1) // url
val additionalChars = schemelessMatcher.group(4) // additional chars
}
Published at
2023-07-05 17:36:12Event JSON
{
"id": "a7c7dec19c4e18385c6c1bb9f5ae2e060f9c1ffe024ca460ac2bae3500dc19a4",
"pubkey": "fe9edd5d5c635dd2900f1f86a872e81ce1d6e20bd4e06549f133ae6bf158913b",
"created_at": 1688578572,
"kind": 1,
"tags": [],
"content": "val noProtocolUrlValidator = Pattern.compile(\"(([\\\\w\\\\d-]+\\\\.)*[a-zA-Z][\\\\w-]+[\\\\.\\\\:]\\\\w+([\\\\/\\\\?\\\\=\\\\\u0026\\\\#\\\\.]?[\\\\w-]+)*\\\\/?)(.*)\")\n\n// 抜粋\n } else if (schemelessMatcher.find()) {\n val url = schemelessMatcher.group(1) // url\n val additionalChars = schemelessMatcher.group(4) // additional chars\n}",
"sig": "9b4dd6ea461dbdf33def268801b3ddd7022c9b9ab126c358d437220cff13c4362cffc000a2b78faa57e2cab62e98bfd066ebb79b8d79b7e7bac6568ea2e4ed82"
}