title: Regex to match keys in json
body: <p>I am trying to match keys in JSON of this type:</p>
  
  <pre><code>define({
    key1: "some text: and more",
    key2 : 'some text ',
    key3: ": more some text",
    key4: 'some text:'
  });
  </code></pre>
  
  <p>with this regexp <code>(?&lt;=\s|{|,)\s*(\w+)\s*:\s?[\"|\']/g</code>. But currently it's matching the last <code>text:</code> also that should be ignore. </p>
  
  <p>An example could be seen <a href="http://regex101.com/r/cY3uK9" rel="noreferrer">here</a></p>
  
  <p>Could you give me hint how to fix this regex so it matches only keys.</p>