mikedilger on Nostr: Yes. It is too strict. I think this works: !^HTTP/(?P<version>[0-9/.]+) ...
Yes. It is too strict. I think this works:
!^HTTP/(?P<version>[0-9/.]+) (?P<code>[0-9]*)($|\s(?P<reason>.*))!
Using standard / delimiters (e.g. and testing at regex101.com):
^HTTP\/(?P<version>[0-9\/.]+) (?P<code>[0-9]*)($|\s(?P<reason>.*))
Published at
2025-02-06 19:59:08Event JSON
{
"id": "878ac933f140aa951a64f685e9ea9cd32f33935eb97b489933ba64bf2dcc3159",
"pubkey": "ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"created_at": 1738871948,
"kind": 1,
"tags": [
[
"p",
"06639a386c9c1014217622ccbcf40908c4f1a0c33e23f8d6d68f4abf655f8f71"
],
[
"p",
"0dc2dcb14d89f94b8a1590e178e9fbcb2ef1cb0be175a283842f9dc54787801a"
],
[
"p",
"2cef5d547a6dadfb865b258d80b3507ed7be52383bbc1fc0469070b319d7e064"
],
[
"p",
"3d842afecd5e293f28b6627933704a3fb8ce153aa91d790ab11f6a752d44a42d"
],
[
"e",
"f3b025f1bc97ae7bfee91695e9f8a2b7789d110375323ea85b832ea3708524d5",
"wss://nos.lol/",
"root"
],
[
"e",
"ce2d6b9ec01df92603dd5bf27f5272bb39f45b68f032cd0903fc984f2eef0ab5",
"wss://bitcoiner.social/",
"reply",
"06639a386c9c1014217622ccbcf40908c4f1a0c33e23f8d6d68f4abf655f8f71"
]
],
"content": "Yes. It is too strict. I think this works:\n\n!^HTTP/(?P\u003cversion\u003e[0-9/.]+) (?P\u003ccode\u003e[0-9]*)($|\\s(?P\u003creason\u003e.*))!\n\nUsing standard / delimiters (e.g. and testing at regex101.com):\n\n^HTTP\\/(?P\u003cversion\u003e[0-9\\/.]+) (?P\u003ccode\u003e[0-9]*)($|\\s(?P\u003creason\u003e.*))",
"sig": "dcd4a13fc3e90b855c77c3ca00fe4e484fdc0a1a2848d85e1e918c6bb70fac500f6d505a739b0135250440b93b02e88d96950ef4e08f96465b046758f85f3dc7"
}