For a "fun time" in Ruby, take the string "'xo" and try to put a backslash before the single quote (in a way that works for any string).
@josh_cheek The Ruby version is correct. If you `puts` it out, it'll have what you're looking for. Inspect escapes backslashes and double qs
-
-
-
@josh_cheek Whoops, that second gsub should be "\\\\'"
End of conversation
New conversation -
-
-
@josh_cheek double quotes*, because that's what the string literal version would look likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.