wizzwizz4 on Nostr: nprofile1q…rg2yn Assuming it's a JavaScript regex: "I am testing— this ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqw786zzkvu7k2zf2x45kr5h6dreysuz8nrxtumxpeyj3nhdlulgzqprg2yn (nprofile…g2yn) Assuming it's a JavaScript regex:
"I am testing— this example— sentence.".replace(/(\s)(\S+—)/gi, "$1<span class='mdash'>$2</span>")
but I'm not sure /why/ you want this, so I suspect it might be the wrong thing.
"I am testing— this example— sentence.".replace(/(\s)(\S+—)/gi, "$1<span class='mdash'>$2</span>")
but I'm not sure /why/ you want this, so I suspect it might be the wrong thing.