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 + "—") with (" " + "<span class='mdash'> + string + "—" + "</span>") in HTML.
I am paying $5.
Published at
2024-12-28 18:23:47 UTCEvent JSON
{
"id": "937bf83df6a61649d2883e45adbf930447ea40ce89b6fdbe680a7eaaeae03279",
"pubkey": "99c2e829366078236e3c21761df14e15f5d3d035ac80913b7ca139493fbb4700",
"created_at": 1735410227,
"kind": 1,
"tags": [
[
"content-warning",
"Code Bounty to FOSStodon, REGEX"
],
[
"proxy",
"https://fosstodon.org/@nantucketebooks/113731844647935393",
"web"
],
[
"proxy",
"https://fosstodon.org/users/nantucketebooks/statuses/113731844647935393",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/nantucketebooks/statuses/113731844647935393",
"pink.momostr"
],
[
"-"
]
],
"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": "158471aca1825bb385d86033a6885cfbaaa793843466eda0de7c6b72e8b76393708288c57ec11aab3e3084caabc720ba28d7ebf4965d28ecd2a47ce51472f5e5"
}