Nantucket E-Books 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 + "—") with (" " + "<span class='mdash'> + string + "—" + "</span>") in HTML.
I am paying $5.
Published at
2024-12-28 18:23:47Event JSON
{
"id": "a820902f3d0ded029007688f58c0d2ec9135bc1d007d2209e495f87f484f5f4c",
"pubkey": "2a47a6f5dbe694b43c90d3d3660606e8b3c04901964edca7bb30601038244121",
"created_at": 1735410227,
"kind": 1,
"tags": [
[
"content-warning",
"Code Bounty to FOSStodon, REGEX"
],
[
"proxy",
"https://fosstodon.org/users/nantucketebooks/statuses/113731844647935393",
"activitypub"
]
],
"content": "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 \"\u0026mdash;\" on the right side.\n\nMy objective is to replace all instances of (\" \" + string + \"\u0026mdash;\") with (\" \" + \"\u003cspan class='mdash'\u003e + string + \"\u0026mdash;\" + \"\u003c/span\u003e\") in HTML. \n\nI am paying $5.",
"sig": "8cedd21c7f9dcfefa792ed8026c076b75efb9010b5b7f87bcfa09a996e6710641184944ff539a5f84291e70a3eb117e9eee23684be131b4421f2332f1e2c0c3b"
}