for something simple like this, always use str_replace():
$string = "(\"txt1\",\"txt2\",\"txt3\",\"txt4\")";
$string = str_replace("\\"","'",$string);
note: you need 3 backslashes for the first arg since the first \ escapes the second \, the third \ escapes the ".