What is Nostr?
Code Puppet /
npub1pku…tfs8
2023-01-11 04:21:29

Code Puppet on Nostr: What regex should I use to parse lightning invoices in notes? I'm about to use ...

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
Author Public Key
npub1pkuql2g796sqhkdkgdjd9zd5m7htux2cwpplzgsx4ksk8n86677s4dtfs8