Join Nostr
2024-12-28 18:23:47 UTC

nantucketlit on Nostr: Here's a new code bounty: I'm looking for a REGEX that will match for a string that ...

Here's a new code bounty: I'm looking for a REGEX that will match for a string that has an empty space, " ", on the left side, and the string "—" on the right side.

My objective is to replace all instances of (" " + string + "&mdash;") with (" " + "<span class='mdash'> + string + "&mdash;" + "</span>") in HTML.

I am paying $5.