These regexes to parse an IPFS cid out of a URL are kind of beautiful.
Please Login to reply.
using a positive lookbehind avoids using a group match, e.g. (?<=^\/ipfs\/)[^/]+