title: Regex to catch strings that are not inside string pattern
body: <p>I want to find a regex that catch all strings that are not inside name('stringName') pattern.</p>
  <p>For example I have this text:</p>
  <pre><code>fdlfksj &quot;hello1&quot; dsffsf &quot;hello2\&quot;hi&quot; name(&quot;Tod&quot;).name('tod') 'hello3'
  </code></pre>
  <p>I want my regex to catch the strings:
  <code>&quot;hello1&quot;, &quot;hello2\&quot;hi&quot;, 'hello3'</code>  (it should also should catch <code>&quot;hello2\&quot;hi&quot;</code> because I want to ignore &quot; escaping).</p>
  <p>I want also that my regex will ignore &quot;Tod&quot; because it's inside the pattern name(&quot;...&quot;)
  How should I do it?</p>
  <p>Here is my regex that doens't work:</p>
  <pre><code>((?&lt;!(name\())(&quot;[^&quot;]*&quot;|'[^']*'))
  </code></pre>
  <p>It doesn't work with ignore escaping: <code>\&quot;</code> and <code>\'</code></p>
  <p>and it's also not ignore name(&quot;Tod&quot;)</p>
  <p><a href="https://i.stack.imgur.com/ZpdCL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZpdCL.png" alt="enter image description here" /></a></p>
  <p>How can I fix it?</p>