In ruby, say I have this string: "abc''xyz''"
(those are 2 single quotes after abc
and xyz
)
Now, I am trying to find a way to make it into this string: "abc'xyz'"
I want to delete only one apostrophe from this string in locations where there are two apostrophes back to back. Thanks in advance.