title: Javascript: equivalent regex for negative lookbehind?
body: <p>I want to write a regular expression that will captures all double quotes " in a string, except for those that are escaped.</p>
  
  <p>For example, in the following String will return the first quote only: </p>
  
  <pre><code>"HELLO\"\"\"
  </code></pre>
  
  <p>but the following one will return 3 matches:</p>
  
  <pre><code>"HELLO\"\""\""
  </code></pre>
  
  <p>I have used the following expression, but since in JavaScript there is no negative lookbehind I am stuck:</p>
  
  <pre><code>(?&lt;!\\)"
  </code></pre>
  
  <p>I have looked at similar questions but most provide a programmatic interface. I don't want to use a programmatic interface because I am using Ace editor and the simplest way to go around my problem is to define this regex. </p>
  
  <p>I suppose there is no generic alternative, since I have tried the alternatives proposed to the similar questions, but non of them exactly matched my case.</p>
  
  <p>Thanks for your answers!</p>