Here is an example using both REGEXPREP and STRREP to replace double quotes with two single quotes:
>> mystr = 'Hello "Jonathan" ';
>> newStr1 = regexprep('Hello "Joe"','"','\''''')
newStr1 =
Hello 'Joe'
>> newStr2 = strrep('Hello "Joe"','"','''''')
newStr2 =
Hello 'Joe'
Best Answer