I have data from a CSV file that is enclosed in single quotes, like:
\'Company name\' \'Price: $43.50\' \'New York, New York\'
I want to be
You could use the or operator.
updateString = theString.replaceAll("(^')|('$)","");
See if that works for you :)