Code Puppet on Nostr: What regex should I use to parse lightning invoices in notes? I'm about to use ...
Published at
2023-01-11 04:21:29Event JSON
{
"id": "fe931ed2589d0c3e4ccd2f84f45e75b70fb0b4106c53f808af13ec262f4013b9",
"pubkey": "0db80fa91e2ea00bd9b64364d289b4dfaebe19587043f12206ada163ccfad7bd",
"created_at": 1673410889,
"kind": 1,
"tags": [],
"content": "What regex should I use to parse lightning invoices in notes? I'm about to use `/^(lnbcrt|lntb|lnbc|LNBCRT|LNTB|LNBC)([0-9]{1,}[a-zA-Z0-9]+){1}$/g` which I got from https://github.com/ZeusLN/zeus/blob/master/utils/AddressUtils.ts",
"sig": "7257200e9c638aee0efb5c6b1baebbf06bd33ff88574d761708d3e0bd80a56238d6b2f67bff6cd11bf341e94325301b58d12925f98d07b5750e3bea6eecb2af0"
}