title: Regex to match word that is not in double or single quotes
body: <p>I am trying to write regex code that matches a word that is not in quotes. I used a look ahead and look behind to try and accomplish but it doesnt seem to be working. Here is my code</p>
  
  <pre><code>(?&lt;!"")echo(?&gt;!"")
  </code></pre>
  
  <p>I want it to match only when echo is not in single or double quotes i.e
  match:</p>
  
  <pre><code>echo "i need help";
  </code></pre>
  
  <p>and not:</p>
  
  <pre><code>$str = " you can use echo to print out words";
  </code></pre>
  
  <p>by the way am using vb.net 2012</p>