title: Javascript - Strange regex behaivor
body: <p>So this is my code:</p>
  
  <pre><code>var str = "eee";
  
  console.log(str.replace(/ee/g, "e*e"));
  </code></pre>
  
  <p>In the console the result is:</p>
  
  <pre><code>&gt; "e*ee"
  </code></pre>
  
  <p>When it should be:</p>
  
  <pre><code>&gt; "e*e*e"
  </code></pre>
  
  <p>Why does this happen, and how do I fix it?</p>