title: Extract word in quotes from string
body: <p>I am using R to extract words from short text pieces. Specifically, I want to extract any word that appear in quotes (&quot;) from a string, but not when it appears inside brackets ().</p>
  <p>For instance, I would like the &quot;hello&quot; first of the 3 strings, but not the other two:</p>
  <pre><code>c('&quot;hello&quot; world', 'hello world', '(&quot;hello&quot;) world')
  </code></pre>
  <p><strong>Original code attempt</strong></p>
  <pre><code>str_extract(x, '(?&lt;=&quot;)[^$]+(?&lt;=&quot;)')
  </code></pre>