x
 
<html>
<body>
<script type="text/javascript">
name = '"a", "b"';
document.write(name.replace(/"([^"]*)"/g, "'$1'"));
</script>
</body>
</html>