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.
