$string =~ s/^\("(.*)"\)$/$1/; #### # Faster than first. $string =~ s/^\("//; $string =~ s/"\)$//; #### # Same as previous, less redundant. s/^\("//, s/"\)$// for $string; #### # You didn't mention an escape mechanism, so I'm # assuming there's no other quotes in the string. $string =~ s/"//g; #### # I didn't say it was impossible. $string = (split '"', $string)[1];