For instance say I have the string:
var name = \'Mc\'Obrian\'
I want to be able to escape the the first quote and the last quote only, not the
var name = 'Mc\'Obrian'
or
var name = "Mc'Obrian"