starman@programming.dev to Lemmy App Development @lemm.ee · edit-21 year agoRegex for lemmy spoilersmessage-squaremessage-square2fedilinkarrow-up110arrow-down11file-text
arrow-up19arrow-down1message-squareRegex for lemmy spoilersstarman@programming.dev to Lemmy App Development @lemm.ee · edit-21 year agomessage-square2fedilinkfile-text
Through trial and errors, I’ve created regex for lemmy spoilers: /:::\sspoiler\s+(?<title>.+)\n(?<body>[\s\S]+?)\n:::/g link to regex101.com with explanation
Thank you for sharing!