title: Replace single quotes with double quotes inside string
body: <p>My code replaces all object key with double quotes but the value with single quotes is not getting replaced</p>
  
  <pre><code>var str = "db.projects.insert({'projectid':'1001','projteamname':'DBTeam','amount':100})"
  var objKeysRegex = /({|,)(?:\s*)(?:')?([A-Za-z_$\.][A-Za-z0-9_ \-\.$]*)(?:')?(?:\s*):/g;// look for object names
  str = str.replace(objKeysRegex, "$1\"$2\":");// all object names should be double quoted
  console.log(str)
  </code></pre>
  
  <p>I am not able to get the below result</p>
  
  <pre><code>Expected ouput
  db.projects.insert({"projectid":"1001","projteamname":"DBTeam","amount":100})
  </code></pre>